1
0
forked from VimPlug/jedi

Fix a wrong branch check, fixes #1128

This commit is contained in:
Dave Halter
2018-06-01 08:59:16 +02:00
parent 6ebe3f87a3
commit 62a3f99594
2 changed files with 6 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ def reachability_check(context, context_scope, node, origin_scope=None):
if not branch_matches and origin_keyword == 'else' \
and node_keyword == 'except':
return UNREACHABLE
if branch_matches:
break
# Direct parents get resolved, we filter scopes that are separate

View File

@@ -29,6 +29,10 @@ finally:
x
x = tuple
if False:
with open("") as defined_in_false:
#? ['seekable']
defined_in_false.seekab
# -----------------
# Return checks