mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-16 23:13:37 +08:00
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:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user