1
0
forked from VimPlug/jedi

Fix more issues with where contexts are used and where values are used

This commit is contained in:
Dave Halter
2019-08-20 09:59:10 +02:00
parent 39b294e085
commit 14fc5ed289
7 changed files with 36 additions and 13 deletions

View File

@@ -401,7 +401,7 @@ class InferenceState(object):
if is_nested and not node_is_object:
return func.get_function_execution()
return func
return func.as_context()
elif scope_node.type == 'classdef':
return ClassValue(self, parent_context, scope_node).as_context()
elif scope_node.type in ('comp_for', 'sync_comp_for'):