forked from VimPlug/jedi
Fix failing test_basedefinition_type
This commit is contained in:
@@ -133,6 +133,8 @@ class BaseDefinition(object):
|
|||||||
stripped = self.definition
|
stripped = self.definition
|
||||||
if isinstance(self.definition, er.InstanceElement):
|
if isinstance(self.definition, er.InstanceElement):
|
||||||
stripped = self.definition.var
|
stripped = self.definition.var
|
||||||
|
if isinstance(stripped, pr.Name):
|
||||||
|
stripped = stripped.parent
|
||||||
return type(stripped).__name__.lower()
|
return type(stripped).__name__.lower()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user