diff --git a/qtpy/__init__.py b/qtpy/__init__.py index d21d9799..0c131c39 100644 --- a/qtpy/__init__.py +++ b/qtpy/__init__.py @@ -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 diff --git a/qtpy/tests/test_qttest.py b/qtpy/tests/test_qttest.py index 6f3ec468..c57f81ec 100644 --- a/qtpy/tests/test_qttest.py +++ b/qtpy/tests/test_qttest.py @@ -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 diff --git a/qtpy/tests/test_qtwebenginewidgets.py b/qtpy/tests/test_qtwebenginewidgets.py index b8c4d983..2743ac65 100644 --- a/qtpy/tests/test_qtwebenginewidgets.py +++ b/qtpy/tests/test_qtwebenginewidgets.py @@ -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