Skip to content

Commit eec0a92

Browse files
committed
Add __name__/__qualname__ to _lru_cache_wrapper
1 parent deabec1 commit eec0a92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/functools.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ class _lru_cache_wrapper(Generic[_T_co]):
6363
def __copy__(self) -> _lru_cache_wrapper[_T_co]: ...
6464
def __deepcopy__(self, memo: Any, /) -> _lru_cache_wrapper[_T_co]: ...
6565

66+
# as with ``Callable``, we'll assume that these attributes exist
67+
__name__: str
68+
__qualname__: str
69+
6670
@overload
6771
def lru_cache(maxsize: int | None = 128, typed: bool = False) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...
6872
@overload

0 commit comments

Comments
 (0)