summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2024-10-13 18:12:23 +0200
committerFlorian Bruhin <me@the-compiler.org>2024-10-15 11:55:04 +0200
commitab7d04a951adcd59b2b5f93e5180c9239a636f34 (patch)
tree7be5c9a15935cdb742f86fad5fe95a0209f2cc1b
parent2ab963cef88bdc9b42bdffc74a0751c7b6a85d68 (diff)
downloadqutebrowser-ab7d04a951adcd59b2b5f93e5180c9239a636f34.tar.gz
qutebrowser-ab7d04a951adcd59b2b5f93e5180c9239a636f34.zip
Fix wrong type annotation
This was wrong ever since 0a835ecd926cc334f5f0347e6d0b809dcfd86d0f, but due to the version conditional usage, mypy did not check it.
-rw-r--r--qutebrowser/misc/debugcachestats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/misc/debugcachestats.py b/qutebrowser/misc/debugcachestats.py
index 7deb8bdcd..b12995c5c 100644
--- a/qutebrowser/misc/debugcachestats.py
+++ b/qutebrowser/misc/debugcachestats.py
@@ -10,13 +10,13 @@ dependencies as possible to avoid cyclic dependencies.
import weakref
from typing import Any, Optional, TypeVar
-from collections.abc import Mapping, Callable
+from collections.abc import MutableMapping, Callable
from qutebrowser.utils import log
# The callable should be a lru_cache wrapped function
-_CACHE_FUNCTIONS: Mapping[str, Any] = weakref.WeakValueDictionary()
+_CACHE_FUNCTIONS: MutableMapping[str, Any] = weakref.WeakValueDictionary()
_T = TypeVar('_T', bound=Callable[..., Any])