mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[functools] Add __name__/__qualname__ to _lru_cache_wrapper (#15328)
This commit is contained in:
@@ -63,6 +63,10 @@ class _lru_cache_wrapper(Generic[_T_co]):
|
||||
def __copy__(self) -> _lru_cache_wrapper[_T_co]: ...
|
||||
def __deepcopy__(self, memo: Any, /) -> _lru_cache_wrapper[_T_co]: ...
|
||||
|
||||
# as with ``Callable``, we'll assume that these attributes exist
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
|
||||
@overload
|
||||
def lru_cache(maxsize: int | None = 128, typed: bool = False) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user