forked from VimPlug/jedi
goto shouldn't call names_to_types
This commit is contained in:
@@ -231,6 +231,10 @@ class NameFinder(object):
|
||||
if result:
|
||||
break
|
||||
|
||||
if not result and isinstance(self.scope, er.Instance):
|
||||
# __getattr__ / __getattribute__
|
||||
result += self._check_getattr(self.scope)
|
||||
|
||||
debug.dbg('sfn filter "%s" in (%s-%s): %s@%s'
|
||||
% (self.name_str, self.scope, nscope, u(result), self.position))
|
||||
return result
|
||||
@@ -248,10 +252,6 @@ class NameFinder(object):
|
||||
break
|
||||
flow_scope = flow_scope.parent
|
||||
|
||||
if not result and isinstance(self.scope, er.Instance):
|
||||
# __getattr__ / __getattribute__
|
||||
result += self._check_getattr(self.scope)
|
||||
|
||||
return result
|
||||
|
||||
def _check_getattr(self, inst):
|
||||
|
||||
Reference in New Issue
Block a user