Merge branch 'master' into typeshed

This commit is contained in:
Dave Halter committed 2019-02-27 13:13:17 +01:00
commit 2a9e678877
15 files changed
+112 -18

No files matched your search

+4 -1
View File
@@ -130,7 +130,10 @@ def get_stack_at_position(grammar, code_lines, module_node, pos):
p.parse(tokens=tokenize_without_endmarker(code))
except EndMarkerReached:
return p.stack
raise SystemError("This really shouldn't happen. There's a bug in Jedi.")
raise SystemError(
"This really shouldn't happen. There's a bug in Jedi:\n%s"
% list(tokenize_without_endmarker(code))
)
def evaluate_goto_definition(evaluator, context, leaf):