1
0
forked from VimPlug/jedi

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

This commit is contained in:
Dave Halter
2019-12-23 10:08:43 +01:00
parent d9383f1927
commit eca8278eef
7 changed files with 26 additions and 4 deletions

View File

@@ -12,7 +12,6 @@ arguments.
import os
import sys
import warnings
import keyword
import parso
from parso.python import tree

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]

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