Skip to content

Commit 6d7b3c2

Browse files
committed
Use QT_VERSION instead of QtCore.__version__
1 parent ef05a5d commit 6d7b3c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qtpy/QtWidgets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
from packaging.version import parse
1313

14-
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, QtModuleNotInstalledError
14+
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, QT_VERSION as _qt_version
1515
from ._utils import add_action, possibly_static_exec, getattr_missing_optional_dep
16-
from .QtCore import __version__ as _qt_version
1716

1817

1918
_missing_optional_names = {}

0 commit comments

Comments
 (0)