Added missing type annotations and type arguments (#5070)

Co-authored-by: Eric Traut <erictr@microsoft.com>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
Eric Traut
2021-02-25 16:09:58 -07:00
committed by GitHub
parent bf583da275
commit 4b4ced5fa0
16 changed files with 62 additions and 62 deletions

View File

@@ -5,7 +5,7 @@ _T = TypeVar("_T")
_F = TypeVar("_F", bound=Callable[..., Any])
_RET = Callable[[_F], _F]
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET: ...
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET: ...
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET[_F]: ...
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET[_F]: ...
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET[_F]: ...
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET[_F]: ...