diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-06-23 23:38:22 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-06-30 19:29:28 +0200 |
commit | ad77048d530aefeecdd1c784accaddb929f8bdc6 (patch) | |
tree | 7698458269c01d3b04c052853761dd59d39d685d /qutebrowser | |
parent | 73b51d274fc151a7bd2c86c5e5eda90cf065bc9b (diff) | |
download | qutebrowser-ad77048d530aefeecdd1c784accaddb929f8bdc6.tar.gz qutebrowser-ad77048d530aefeecdd1c784accaddb929f8bdc6.zip |
qt: blackify
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/qt/machinery.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qutebrowser/qt/machinery.py b/qutebrowser/qt/machinery.py index 4e88a0634..bd5062120 100644 --- a/qutebrowser/qt/machinery.py +++ b/qutebrowser/qt/machinery.py @@ -168,8 +168,10 @@ def _select_wrapper(args: Optional[argparse.Namespace]) -> SelectionInfo: if env_wrapper == "auto": return _autoselect_wrapper() elif env_wrapper not in WRAPPERS: - raise Error(f"Unknown wrapper {env_wrapper} set via {env_var}, " - f"allowed: {', '.join(WRAPPERS)}") + raise Error( + f"Unknown wrapper {env_wrapper} set via {env_var}, " + f"allowed: {', '.join(WRAPPERS)}" + ) return SelectionInfo(wrapper=env_wrapper, reason=SelectionReason.env) # FIXME:qt6 Go back to the auto-detection once ready @@ -217,8 +219,7 @@ def _set_globals(info: SelectionInfo) -> None: Those are split into multiple global variables because that way we can teach mypy about them via --always-true and --always-false, see tox.ini. """ - global INFO, USE_PYQT5, USE_PYQT6, USE_PYSIDE6, IS_QT5, IS_QT6, \ - IS_PYQT, IS_PYSIDE, _initialized + global INFO, USE_PYQT5, USE_PYQT6, USE_PYSIDE6, IS_QT5, IS_QT6, IS_PYQT, IS_PYSIDE, _initialized assert info.wrapper is not None, info assert not _initialized |