1
0
forked from VimPlug/jedi

Add support for completion even when __getattr__ is present, fixes #997

This commit is contained in:
Dave Halter
2019-12-24 01:44:53 +01:00
parent eca8278eef
commit 1d17033717
3 changed files with 80 additions and 4 deletions

View File

@@ -224,8 +224,8 @@ class _BaseTreeInstance(AbstractInstanceValue):
# We are inversing this, because a hand-crafted `__getattribute__`
# could still call another hand-crafted `__getattr__`, but not the
# other way around.
names = (self.get_function_slot_names(u'__getattr__') or
self.get_function_slot_names(u'__getattribute__'))
names = (self.get_function_slot_names(u'__getattr__')
or self.get_function_slot_names(u'__getattribute__'))
return self.execute_function_slots(names, name)
def py__getitem__(self, index_value_set, contextualized_node):