1
0
forked from VimPlug/jedi

Refactor Evaluator.wrap to use the types in a more consequent way.

This commit is contained in:
Dave Halter
2016-06-29 21:06:35 +02:00
parent a3b263a599
commit 689284c615
5 changed files with 19 additions and 10 deletions
+4
View File
@@ -560,6 +560,10 @@ def global_names_dict_generator(evaluator, scope, position):
for names_dict in scope.names_dicts(True):
yield names_dict, position
if hasattr(scope, 'resets_positions'):
# TODO This is so ugly, seriously. However there's
# currently no good way of influencing
# global_names_dict_generator when it comes to certain
# objects.
position = None
if scope.type == 'funcdef':
# The position should be reset if the current scope is a function.