mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-26 05:17:23 +08:00
Add a comment and link to issue #483
This commit is contained in:
1 parent
42596dba15
commit
d7836c1034
1 file changed
+3
-2
@@ -325,9 +325,10 @@ def load_module(path, name):
|
|||||||
try:
|
try:
|
||||||
__import__(dotted_path)
|
__import__(dotted_path)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
# RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap
|
|
||||||
# the QObject class
|
|
||||||
if 'PySide' in dotted_path or 'PyQt' in dotted_path:
|
if 'PySide' in dotted_path or 'PyQt' in dotted_path:
|
||||||
|
# RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap
|
||||||
|
# the QObject class.
|
||||||
|
# See https://github.com/davidhalter/jedi/pull/483
|
||||||
return None
|
return None
|
||||||
# Just access the cache after import, because of #59 as well as the very
|
# Just access the cache after import, because of #59 as well as the very
|
||||||
# complicated import structure of Python.
|
# complicated import structure of Python.
|
||||||
|
|||||||
Reference in new issue
Block a user