1
0
forked from VimPlug/jedi

Fix issue with descriptors.

This commit is contained in:
Dave Halter
2014-09-24 16:52:44 +02:00
parent 19b32a3657
commit db31536d78
2 changed files with 9 additions and 4 deletions

View File

@@ -682,7 +682,12 @@ class Flow(Scope):
def add_name_call(self, name, call):
"""Add a name to the names_dict."""
self.parent.add_name_call(name, call)
parent = self.parent
if isinstance(parent, Module):
# TODO this also looks like code smell. Look for opportunities to
# remove.
parent = self._sub_module
parent.add_name_call(name, call)
@property
def parent(self):