Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2024
1 parent 6762c5b commit 80d5771
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions qtpy/QtCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
import contextlib
from typing import TYPE_CHECKING

from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, _parse_version
from . import QT_VERSION as _qt_version
from . import _parse_version
from ._utils import possibly_static_exec, possibly_static_exec_

if PYQT5:
Expand Down
6 changes: 3 additions & 3 deletions qtpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _parse_version(version):
macos_version = _parse_version(platform.mac_ver()[0])
qt_ver = _parse_version(QT_VERSION)
if macos_version < _parse_version(
"10.10"
"10.10",
) and qt_ver >= _parse_version("5.9"):
raise PythonQtError(
"Qt 5.9 or higher only works in "
Expand All @@ -237,7 +237,7 @@ def _parse_version(version):
"system.",
)
elif macos_version < _parse_version(
"10.11"
"10.11",
) and qt_ver >= _parse_version("5.11"):
raise PythonQtError(
"Qt 5.11 or higher only works in "
Expand Down Expand Up @@ -265,7 +265,7 @@ def _parse_version(version):
macos_version = _parse_version(platform.mac_ver()[0])
qt_ver = _parse_version(QT_VERSION)
if macos_version < _parse_version(
"10.11"
"10.11",
) and qt_ver >= _parse_version("5.11"):
raise PythonQtError(
"Qt 5.11 or higher only works in "
Expand Down
4 changes: 3 additions & 1 deletion qtpy/tests/test_qtwebenginewidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
@pytest.mark.skipif(
not (
(PYQT6 and _parse_version(PYQT_VERSION) >= _parse_version("6.2"))
or (PYSIDE6 and _parse_version(PYSIDE_VERSION) >= _parse_version("6.2"))
or (
PYSIDE6 and _parse_version(PYSIDE_VERSION) >= _parse_version("6.2")
)
or PYQT5
or PYSIDE2
),
Expand Down

0 comments on commit 80d5771

Please sign in to comment.