[functools] Add __name__/__qualname__ to _lru_cache_wrapper (#15328)

This commit is contained in:
Alan Du
2026-01-30 07:38:59 -05:00
committed by GitHub
parent c79275d92e
commit 31c195aacf
+4
View File
@@ -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