Skip to content

Commit 59f151c

Browse files
committed
[mypy] annotates cls var in other/lfu_cache
1 parent 8b6fa2e commit 59f151c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: other/lfu_cache.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Callable, Generic, TypeVar
3+
from typing import Callable, Generic, Type, TypeVar
44

55
T = TypeVar("T")
66
U = TypeVar("U")
@@ -281,7 +281,7 @@ def set(self, key: T, value: U) -> None:
281281

282282
@classmethod
283283
def decorator(
284-
cls, size: int = 128
284+
cls: Type[LFUCache[T, U]], size: int = 128
285285
) -> Callable[[Callable[[T], U]], Callable[..., U]]:
286286
"""
287287
Decorator version of LFU Cache

0 commit comments

Comments
 (0)