-from typing import Any, Callable, Generic, TypeVar, overload
-
-_T = TypeVar("_T")
-
-
-class cached_property(Generic[_T]):
- def __init__(self, func: Callable[[Any], _T]) -> None: ...
-
- @overload
- def __get__(self, instance: None,
- owner: type[Any] | None = ...) -> cached_property[_T]: ...
-
- @overload
- def __get__(self, instance: object,
- owner: type[Any] | None = ...) -> _T: ...
+cached_property = property