From c2f97cfe9e90f4e774516d76072294ad4e65ef44 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 22 Oct 2019 16:21:26 +0200 Subject: [PATCH] mypy: Fix new issues in statusbar.url --- qutebrowser/mainwindow/statusbar/url.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/qutebrowser/mainwindow/statusbar/url.py b/qutebrowser/mainwindow/statusbar/url.py index 6eace8822..d6aacb184 100644 --- a/qutebrowser/mainwindow/statusbar/url.py +++ b/qutebrowser/mainwindow/statusbar/url.py @@ -42,17 +42,10 @@ class UrlText(textbase.TextBase): _normal_url_type: The type of the normal URL as a UrlType instance. _hover_url: The URL we're currently hovering over. _ssl_errors: Whether SSL errors occurred while loading. - - Class attributes: _urltype: The URL type to show currently (normal/ok/error/warn/hover). Accessed via the urltype property. - - For some reason we need to have this as class attribute so - pyqtProperty works correctly. """ - _urltype = None - STYLESHEET = """ QLabel#UrlText[urltype="normal"] { color: {{ conf.colors.statusbar.url.fg }}; @@ -81,6 +74,7 @@ class UrlText(textbase.TextBase): def __init__(self, parent=None): super().__init__(parent) + self._urltype = None self.setObjectName(self.__class__.__name__) config.set_register_stylesheet(self) self._hover_url = None