diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-07-19 17:27:55 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-07-19 17:27:55 +0200 |
commit | 5cfab728b29610dd1ab43591b4ba66919621b8a2 (patch) | |
tree | 82329b4d1ca473ae989eb01d1d6eb432671e02d0 /qutebrowser/misc/miscwidgets.py | |
parent | 92dea988c01e74596cc6ed698e88ac56df392c14 (diff) | |
download | qutebrowser-5cfab728b29610dd1ab43591b4ba66919621b8a2.tar.gz qutebrowser-5cfab728b29610dd1ab43591b4ba66919621b8a2.zip |
Improve handling of Optional with new PyQt stubs
Diffstat (limited to 'qutebrowser/misc/miscwidgets.py')
-rw-r--r-- | qutebrowser/misc/miscwidgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py index f41cb9df4..1e90ac75a 100644 --- a/qutebrowser/misc/miscwidgets.py +++ b/qutebrowser/misc/miscwidgets.py @@ -244,10 +244,10 @@ class WrapperLayout(QLayout): if self._widget is None: return assert self._container is not None - self._widget.setParent(qtutils.allow_none(None)) + self._widget.setParent(qtutils.QT_NONE) self._widget.deleteLater() self._widget = None - self._container.setFocusProxy(qtutils.allow_none(None)) + self._container.setFocusProxy(qtutils.QT_NONE) class FullscreenNotification(QLabel): |