Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962

This commit is contained in:
Dave Halter
2019-12-23 10:09:45 +01:00
parent d9383f1927
commit eca8278eef
7 changed files with 26 additions and 4 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ def infer_call_of_leaf(context, leaf, cut_own_trailer=False):
base = power.children[start]
if base.type != 'trailer':
break
trailers = power.children[start + 1: index + 1]
trailers = power.children[start + 1:cut]
else:
base = power.children[0]
trailers = power.children[1:cut]
-1
View File
@@ -618,4 +618,3 @@ def follow_error_node_imports_if_possible(context, name):
return Importer(
context.inference_state, names, context.get_root_context(), level).follow()
return None