widgets: flake8 and pylint fixes
[git-cola.git] / qtpy / shiboken.py
blobe9d79320bc096a6f415372ccab94a490f016c331
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 shiboken."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
18 if PYQT5:
19 raise QtBindingMissingModuleError(name='shiboken')
20 elif PYQT6:
21 raise QtBindingMissingModuleError(name='shiboken')
22 elif PYSIDE2:
23 from shiboken2 import *
24 import shiboken2 as shiboken
25 elif PYSIDE6:
26 from shiboken6 import *
27 import shiboken6 as shiboken