Skip to content

Commit a6750d6

Browse files
authored
Merge pull request spyder-ide#47 from Nodd/pyqtvariants
Remove PyQt variant symbols from QtCore
2 parents abc296f + 75bc123 commit a6750d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qtpy/QtCore.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@
1919
from PyQt5.QtCore import pyqtSlot as Slot
2020
from PyQt5.QtCore import pyqtProperty as Property
2121
from PyQt5.QtCore import QT_VERSION_STR as __version__
22+
23+
# Those are imported from `import *`
24+
del pyqtSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR
2225
elif PYQT4:
2326
from PyQt4.QtCore import *
27+
# Those are things we inherited from Spyder that fix crazy crashes under
28+
# some specific situations. (See #34)
2429
from PyQt4.QtCore import QCoreApplication
2530
from PyQt4.QtCore import Qt
2631
from PyQt4.QtCore import pyqtSignal as Signal
@@ -29,6 +34,9 @@
2934
from PyQt4.QtGui import (QItemSelection, QItemSelectionModel,
3035
QItemSelectionRange, QSortFilterProxyModel)
3136
from PyQt4.QtCore import QT_VERSION_STR as __version__
37+
38+
# Those are imported from `import *`
39+
del pyqtSignal, pyqtSlot, pyqtProperty, QT_VERSION_STR
3240
elif PYSIDE:
3341
from PySide.QtCore import *
3442
from PySide.QtGui import (QItemSelection, QItemSelectionModel,

0 commit comments

Comments
 (0)