about: add PyQt6 compatibility for getting the PyQt version
[git-cola.git] / qtpy / sip.py
blob89a31ff35bd71860b056816c8af68a9c3a2abeb1
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides access to sip."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
18 if PYQT5:
19 from PyQt5.sip import *
20 elif PYQT6:
21 from PyQt6.sip import *
22 elif PYSIDE2:
23 raise QtBindingMissingModuleError(name='sip')
24 elif PYSIDE6:
25 raise QtBindingMissingModuleError(name='sip')