engforge.properties.engforge_prop

class engforge_prop(fget=None, fset=None, fdel=None, *args, **kwargs)[source]

Bases: object

an interface for extension and identification and class return support

Use as follows:

@engforge_prop def our_custom_function(self) -> return_type:

pass

call with the function you want to wrap in a decorator

Methods

deleter

get_func_return

ensures that the function has a return annotation, and that return annotation is in valid sort types

getter

setter

Attributes

must_return

valid_types

__call__(fget=None, fset=None, fdel=None, doc=None, *args, **kwargs)[source]

this will be called when input is provided before property is set

get_func_return(func)[source]

ensures that the function has a return annotation, and that return annotation is in valid sort types