forked from VimPlug/jedi
actually start checking if the integration tests are instances on both sides of the comparison. This wasnt necessary for just autocompletion, but it's way more important now.
This commit is contained in:
@@ -621,7 +621,10 @@ class Definition(use_metaclass(CachedMetaClass, BaseDefinition)):
|
||||
d = d.parent
|
||||
|
||||
if isinstance(d, compiled.CompiledObject):
|
||||
d = d.type() + ' ' + d.name
|
||||
typ = d.type()
|
||||
if typ == 'instance':
|
||||
typ = 'class' # The description should be similar to Py objects.
|
||||
d = typ + ' ' + d.name
|
||||
elif isinstance(d, iterable.Array):
|
||||
d = 'class ' + d.type
|
||||
elif isinstance(d, (pr.Class, er.Class, er.Instance)):
|
||||
|
||||
Reference in New Issue
Block a user