b8b1f305ef4ed3a758944974b08b048fb8ef5a56
[bigint-presentation-code.git] / typings / cached_property.pyi
1 from typing import Any, Callable, Generic, TypeVar, overload
2
3 _T = TypeVar("_T")
4
5
6 class cached_property(Generic[_T]):
7 def __init__(self, func: Callable[[Any], _T]) -> None: ...
8
9 @overload
10 def __get__(self, instance: None,
11 owner: type[Any] | None = ...) -> cached_property[_T]: ...
12
13 @overload
14 def __get__(self, instance: object,
15 owner: type[Any] | None = ...) -> _T: ...