mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 05:49:37 +08:00
parent was wrongly used in _create_from_name
This commit is contained in:
@@ -235,13 +235,13 @@ magic_function_class = PyObject(type(load_module), parent=builtin)
|
|||||||
|
|
||||||
|
|
||||||
def _create_from_name(module, parent, name):
|
def _create_from_name(module, parent, name):
|
||||||
faked = fake.get_faked(module.obj, parent, name)
|
faked = fake.get_faked(module.obj, parent.obj, name)
|
||||||
if faked is not None:
|
if faked is not None:
|
||||||
faked.parent = parent
|
faked.parent = parent
|
||||||
return faked
|
return faked
|
||||||
|
|
||||||
try:
|
try:
|
||||||
obj = getattr(parent, name)
|
obj = getattr(parent.obj, name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# happens e.g. in properties of
|
# happens e.g. in properties of
|
||||||
# PyQt4.QtGui.QStyleOptionComboBox.currentText
|
# PyQt4.QtGui.QStyleOptionComboBox.currentText
|
||||||
|
|||||||
Reference in New Issue
Block a user