diff options
Diffstat (limited to 'qutebrowser/utils/qtutils.py')
-rw-r--r-- | qutebrowser/utils/qtutils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qutebrowser/utils/qtutils.py b/qutebrowser/utils/qtutils.py index 6c18f9298..0903ba983 100644 --- a/qutebrowser/utils/qtutils.py +++ b/qutebrowser/utils/qtutils.py @@ -302,7 +302,7 @@ class PyQIODevice(io.BufferedIOBase): # contextlib.closing is only generic in Python 3.9+ def open( self, - mode: QIODevice.OpenMode, + mode, ) -> contextlib.closing: # type: ignore[type-arg] """Open the underlying device and ensure opening succeeded. @@ -463,8 +463,8 @@ class EventLoop(QEventLoop): def exec( self, - flags: QEventLoop.ProcessEventsFlags = - cast(QEventLoop.ProcessEventsFlags, QEventLoop.ProcessEventsFlag.AllEvents) + flags: QEventLoop.ProcessEventsFlag = + cast(QEventLoop.ProcessEventsFlag, QEventLoop.ProcessEventsFlag.AllEvents) ) -> int: """Override exec_ to raise an exception when re-running.""" if self._executing: |