1
0
forked from VimPlug/jedi

Taking a stab at simple *args and generators.

This commit is contained in:
Dave Halter
2016-10-29 02:11:04 +02:00
parent bbb1d1e04c
commit 3cce530ef4
7 changed files with 53 additions and 49 deletions

View File

@@ -41,10 +41,10 @@ def reachability_check(context, context_scope, node, origin_scope=None):
# e.g. `if 0:` would cause all name lookup within the flow make
# unaccessible. This is not a "problem" in Python, because the code is
# never called. In Jedi though, we still want to infer types.
while origin_scope is not None:
if flow_scope == origin_scope:
return REACHABLE
origin_scope = origin_scope.parent
#while origin_scope is not None:
#if flow_scope == origin_scope:
#return REACHABLE
#origin_scope = origin_scope.parent
return _break_check(context, context_scope, flow_scope, node)