1
0
forked from VimPlug/jedi

CompiledObject.type resembles now the Node.type values.

This commit is contained in:
Dave Halter
2015-01-09 01:33:59 +01:00
parent b75ba1e16c
commit 26ecb16e5f
5 changed files with 19 additions and 9 deletions
+1 -2
View File
@@ -467,8 +467,7 @@ def global_names_dict_generator(evaluator, scope, position):
"""
in_func = False
while scope is not None:
if not((scope.type == 'classdef' or isinstance(scope,
compiled.CompiledObject) and scope.type() == 'class') and in_func):
if not (scope.type == 'classdef' and in_func):
# Names in methods cannot be resolved within the class.
for names_dict in scope.names_dicts(True):