Skip to content

Commit 8a4ff57

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a3000ff commit 8a4ff57

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

qtpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _parse_int(value):
194194

195195
def parse(version):
196196
"""Parse a version string into a tuple of ints"""
197-
return tuple(_parse_int(x) for x in version.split('.'))
197+
return tuple(_parse_int(x) for x in version.split("."))
198198

199199

200200
# Unless `FORCE_QT_API` is set, use previously imported Qt Python bindings

qtpy/tests/test_qttest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ def test_qttest():
1010
if PYQT5 or PYQT6 or PYSIDE6:
1111
assert QtTest.QSignalSpy is not None
1212

13-
if ((PYQT5 and parse(PYQT_VERSION) >= parse("5.11")) or PYQT6 or PYSIDE6):
13+
if (
14+
(PYQT5 and parse(PYQT_VERSION) >= parse("5.11"))
15+
or PYQT6
16+
or PYSIDE6
17+
):
1418
assert QtTest.QAbstractItemModelTester is not None
1519

1620

qtpy/tests/test_qtwebenginewidgets.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import pytest
22

3-
from qtpy import PYQT5, PYQT6, PYQT_VERSION, PYSIDE2, PYSIDE6, PYSIDE_VERSION, parse
3+
from qtpy import (
4+
PYQT5,
5+
PYQT6,
6+
PYQT_VERSION,
7+
PYSIDE2,
8+
PYSIDE6,
9+
PYSIDE_VERSION,
10+
parse,
11+
)
412
from qtpy.tests.utils import pytest_importorskip
513

614

0 commit comments

Comments
 (0)