class documentation

class HasMemoized: (source)

View In Hierarchy

A mixin class that maintains the names of memoized elements in a collection for easy cache clearing, generative, etc.

Class memoized_attribute A read-only @property that is only evaluated once.
Class Method memoized_instancemethod Decorate a method memoize its return value.
Class Variable __slots__ Undocumented
Method _assert_no_memoizations Undocumented
Method _reset_memoizations Undocumented
Method _set_memoized_attribute Undocumented
Class Variable _memoized_keys Undocumented
@classmethod
def memoized_instancemethod(cls, fn: _F) -> _F: (source)

Decorate a method memoize its return value. :meta private:

__slots__: tuple = (source)

Undocumented

def _assert_no_memoizations(self): (source)

Undocumented

def _reset_memoizations(self): (source)

Undocumented

def _set_memoized_attribute(self, key: str, value: Any): (source)

Undocumented

_memoized_keys: FrozenSet[str] = (source)

Undocumented