use cached property instead of custom __getattr__ implementation

This commit is contained in:
2023-05-31 18:47:48 +03:00
parent 3ad6cd27c6
commit e3347aec2d
8 changed files with 36 additions and 53 deletions

View File

@ -102,6 +102,9 @@ Again, the most checks can be performed by `make check` command, though some add
@property
def property(self) -> Any: ...
@cached_property
def property_cached(self) -> Any: ... # cached property has to be treated as normal one
@classmethod
def class_method(cls) -> Self: ...