diff options
author | toofar <toofar@spalge.com> | 2022-09-11 12:09:57 +1200 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2022-09-11 17:22:50 +1200 |
commit | 77a90cab1e2ccf4d6b23107304cffed6575a98aa (patch) | |
tree | 23e8ceae74afe8b452861e11955bdd7ff7fc25c6 | |
parent | 3fae7367777406b15da84e33263a1115363260d1 (diff) | |
download | qutebrowser-77a90cab1e2ccf4d6b23107304cffed6575a98aa.tar.gz qutebrowser-77a90cab1e2ccf4d6b23107304cffed6575a98aa.zip |
mypy: ignore enum binary operator: Qt.WindowType
They are the same damn thing: https://doc.qt.io/qt-6/qt.html#WindowType-enum
-rw-r--r-- | qutebrowser/mainwindow/mainwindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/mainwindow.py b/qutebrowser/mainwindow/mainwindow.py index e4cf8ced1..769f03794 100644 --- a/qutebrowser/mainwindow/mainwindow.py +++ b/qutebrowser/mainwindow/mainwindow.py @@ -567,7 +567,8 @@ class MainWindow(QWidget): window_flags = Qt.WindowType.Window refresh_window = self.isVisible() if hidden: - window_flags |= Qt.WindowType.CustomizeWindowHint | Qt.WindowType.NoDropShadowWindowHint + modifiers = Qt.WindowType.CustomizeWindowHint | Qt.WindowType.NoDropShadowWindowHint + window_flags |= modifiers # type: ignore[assignment] self.setWindowFlags(window_flags) if utils.is_mac and hidden and not qtutils.version_check('6.3', compiled=False): |