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 14, 2024
1 parent a3000ff commit 8a4ff57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qtpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _parse_int(value):

def parse(version):
"""Parse a version string into a tuple of ints"""
return tuple(_parse_int(x) for x in version.split('.'))
return tuple(_parse_int(x) for x in version.split("."))


# Unless `FORCE_QT_API` is set, use previously imported Qt Python bindings
Expand Down
6 changes: 5 additions & 1 deletion qtpy/tests/test_qttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ def test_qttest():
if PYQT5 or PYQT6 or PYSIDE6:
assert QtTest.QSignalSpy is not None

if ((PYQT5 and parse(PYQT_VERSION) >= parse("5.11")) or PYQT6 or PYSIDE6):
if (
(PYQT5 and parse(PYQT_VERSION) >= parse("5.11"))
or PYQT6
or PYSIDE6
):
assert QtTest.QAbstractItemModelTester is not None


Expand Down
10 changes: 9 additions & 1 deletion qtpy/tests/test_qtwebenginewidgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import pytest

from qtpy import PYQT5, PYQT6, PYQT_VERSION, PYSIDE2, PYSIDE6, PYSIDE_VERSION, parse
from qtpy import (
PYQT5,
PYQT6,
PYQT_VERSION,
PYSIDE2,
PYSIDE6,
PYSIDE_VERSION,
parse,
)
from qtpy.tests.utils import pytest_importorskip


Expand Down

0 comments on commit 8a4ff57

Please sign in to comment.