1
0
forked from VimPlug/jedi

Fix some fstring issues for now

This commit is contained in:
Dave Halter
2018-04-05 01:11:04 +02:00
parent af956d70a3
commit 567c8b8097
5 changed files with 22 additions and 9 deletions

View File

@@ -11,6 +11,8 @@ from parso.python import tree
from jedi._compatibility import u
from jedi.evaluate.syntax_tree import eval_atom
from jedi.evaluate.helpers import evaluate_call_of_leaf
from jedi.evaluate.compiled import get_string_context_set
from jedi.evaluate.base_context import ContextSet
from jedi.cache import time_cache
@@ -193,6 +195,8 @@ def evaluate_goto_definition(evaluator, context, leaf):
return evaluate_call_of_leaf(context, leaf)
elif isinstance(leaf, tree.Literal):
return eval_atom(context, leaf)
elif leaf.type == 'fstring_string':
return get_string_context_set(evaluator)
return []