engforge.properties.instance_cached

class instance_cached(*args, **kwargs)[source]

Bases: cache_prop

A property that caches a result to an instance the first call then returns that each successive call

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

set_cache

setter

Attributes

allow_set

must_return

private_var

valid_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