1
0
forked from VimPlug/jedi

types also add to completions, also for compiled objects. removed a few lines of code that complicated the process as well.

This commit is contained in:
Dave Halter
2014-06-28 12:09:43 +02:00
parent 7d73e571bb
commit 5b7c869323
3 changed files with 21 additions and 14 deletions

View File

@@ -303,12 +303,9 @@ class Class(use_metaclass(CachedMetaClass, pr.IsScope)):
# TODO mro!
for cls in self.get_super_classes():
# Get the inherited names.
if isinstance(cls, compiled.CompiledObject):
super_result += cls.get_defined_names()
else:
for i in cls.instance_names():
if not in_iterable(i, result):
super_result.append(i)
for i in cls.instance_names():
if not in_iterable(i, result):
super_result.append(i)
result += super_result
return result