mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Fix cachetools maxsize argument types (#6901)
This commit is contained in:
@@ -3,11 +3,13 @@ from typing import Callable, Sequence, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
def fifo_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def lfu_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def lru_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def mru_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def rr_cache(maxsize: float = ..., choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def ttl_cache(
|
||||
maxsize: float = ..., ttl: float = ..., timer: Callable[[], float] = ..., typed: bool = ...
|
||||
def fifo_cache(maxsize: float | None = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def lfu_cache(maxsize: float | None = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def lru_cache(maxsize: float | None = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def mru_cache(maxsize: float | None = ..., typed: bool = ...) -> IdentityFunction: ...
|
||||
def rr_cache(
|
||||
maxsize: float | None = ..., choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = ...
|
||||
) -> IdentityFunction: ...
|
||||
def ttl_cache(
|
||||
maxsize: float | None = ..., ttl: float = ..., timer: Callable[[], float] = ..., typed: bool = ...
|
||||
) -> IdentityFunction: ...
|
||||
|
||||
Reference in New Issue
Block a user