diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-08-26 16:49:57 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-08-26 16:49:57 +0200 |
commit | a7c04310cefe6b10ddb8900a338835793da8873a (patch) | |
tree | 41bdec6438205ed8144f011eee7ed0975e151d84 /qutebrowser | |
parent | ac9d67cce0dbecdde14c474db855243e9746ba04 (diff) | |
download | qutebrowser-a7c04310cefe6b10ddb8900a338835793da8873a.tar.gz qutebrowser-a7c04310cefe6b10ddb8900a338835793da8873a.zip |
Some more enum changes
Diffstat (limited to 'qutebrowser')
-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: |