summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy <jimmy@spalge.com>2022-03-26 12:54:16 +1300
committerJimmy <jimmy@spalge.com>2022-03-26 13:01:10 +1300
commit7e3f8f5984049a2920812b2280d61bbf0f4101bf (patch)
treedaaa20c4a1795bde8dd284c7a9788b14fe2bf784
parent56a370b971cc1bfbb5b15e97ea94348c904b7950 (diff)
downloadqutebrowser-7e3f8f5984049a2920812b2280d61bbf0f4101bf.tar.gz
qutebrowser-7e3f8f5984049a2920812b2280d61bbf0f4101bf.zip
ignore lru_cache flake8 warning
The warning says the `self` reference will get cached forever. In this case though the cache is cleared on every page load (9b0395db087f).
-rw-r--r--qutebrowser/browser/webkit/webkithistory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/browser/webkit/webkithistory.py b/qutebrowser/browser/webkit/webkithistory.py
index 4149bda88..6ffe65193 100644
--- a/qutebrowser/browser/webkit/webkithistory.py
+++ b/qutebrowser/browser/webkit/webkithistory.py
@@ -44,7 +44,7 @@ class WebHistoryInterface(QWebHistoryInterface):
"""Required for a QWebHistoryInterface impl, obsoleted by add_url."""
@debugcachestats.register(name='history')
- @functools.lru_cache(maxsize=32768)
+ @functools.lru_cache(maxsize=32768) # noqa: B019
def historyContains(self, url_string):
"""Called by WebKit to determine if a URL is contained in the history.