Skip to content

Commit 18390e3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: other/lfu_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -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)