engforge.properties.class_cache
- class class_cache(*args, **kwargs)[source]
Bases:
cache_propa property that caches a value on the class at runtime, and then maintains that value for the duration of the program. A flag with the class name ensures the class is correct. Intended for instance methods
call with the function you want to wrap in a decorator
Methods
deleterensures that the function has a return annotation, and that return annotation is in valid sort types
getterset_cachesetterAttributes
allow_setid_varmust_returnprivate_varvalid_types- __call__(fget=None, fset=None, fdel=None, doc=None, *args, **kwargs)
this will be called when input is provided before property is set
- get_func_return(func)
ensures that the function has a return annotation, and that return annotation is in valid sort types