1
0
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:
Dave Halter
2014-07-31 14:58:32 +02:00
parent d899f69686
commit 50fa3a732d
4 changed files with 28 additions and 19 deletions

View File

@@ -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)):