Skip to content

Commit 2483f11

Browse files
committed
Stupidly fix mypy error "A function returning TypeVar should receive at least one argument containing the same TypeVar".
1 parent af372df commit 2483f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/cachetools/cachetools/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class _TimedCache(Cache[_KT, _VT]):
5454

5555
class _Timer:
5656
def __init__(self, timer: Callable[[], _TT]) -> None: ...
57-
def __call__(self) -> _TT: ...
58-
def __enter__(self) -> _TT: ...
57+
def __call__(self) -> Any: ...
58+
def __enter__(self) -> Any: ...
5959
def __exit__(self, *exc: object) -> None: ...
6060
def __getattr__(self, name: str) -> Any: ...
6161

0 commit comments

Comments
 (0)