summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy <jimmy@spalge.com>2022-04-25 16:32:54 +1200
committerJimmy <jimmy@spalge.com>2022-04-30 19:30:49 +1200
commitdecd2e6f2e34dc17ce4415d2d2e83004bee5dd9a (patch)
tree9e39919d1b0afb550db322be43d6ff1189a9d4e5
parent9495c70635b97085a2bfcb288cbf1da0ffb81da6 (diff)
downloadqutebrowser-decd2e6f2e34dc17ce4415d2d2e83004bee5dd9a.tar.gz
qutebrowser-decd2e6f2e34dc17ce4415d2d2e83004bee5dd9a.zip
mypy fixes
a few directives that got lost when adapting stuff for a pyqt wrapper
-rw-r--r--qutebrowser/mainwindow/statusbar/bar.py2
-rw-r--r--qutebrowser/mainwindow/statusbar/url.py2
-rw-r--r--qutebrowser/utils/version.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py
index 0a050a1b4..6133a7f1b 100644
--- a/qutebrowser/mainwindow/statusbar/bar.py
+++ b/qutebrowser/mainwindow/statusbar/bar.py
@@ -297,7 +297,7 @@ class StatusBar(QtWidgets.QWidget):
padding = config.val.statusbar.padding
self._hbox.setContentsMargins(padding.left, 0, padding.right, 0)
- @QtCore.pyqtProperty('QStringList')
+ @QtCore.pyqtProperty('QStringList') # type: ignore[attr-defined]
def color_flags(self):
"""Getter for self.color_flags, so it can be used as Qt property."""
return self._color_flags.to_stringlist()
diff --git a/qutebrowser/mainwindow/statusbar/url.py b/qutebrowser/mainwindow/statusbar/url.py
index 5eec66f72..21a203acd 100644
--- a/qutebrowser/mainwindow/statusbar/url.py
+++ b/qutebrowser/mainwindow/statusbar/url.py
@@ -90,7 +90,7 @@ class UrlText(textbase.TextBase):
self._normal_url = None
self._normal_url_type = UrlType.normal
- @QtCore.pyqtProperty(str)
+ @QtCore.pyqtProperty(str) # type: ignore[attr-defined]
def urltype(self):
"""Getter for self.urltype, so it can be used as Qt property.
diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py
index 6ef9571d3..3c694b512 100644
--- a/qutebrowser/utils/version.py
+++ b/qutebrowser/utils/version.py
@@ -41,7 +41,7 @@ from qutebrowser.qt import QtWidgets, QtWebKit, QtWebEngine, QtNetwork
if QtWebKit:
qWebKitVersion = QtWebKit.qWebKitVersion # noqa: N816
else:
- qWebKitVersion = None # noqa: N816
+ qWebKitVersion = None # type: ignore[assignment] # noqa: N816
if QtWebEngine and hasattr(QtWebEngine, 'PYQT_WEBENGINE_VERSION_STR'):
PYQT_WEBENGINE_VERSION_STR = QtWebEngine.PYQT_WEBENGINE_VERSION_STR
else: