mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter.
This commit is contained in:
@@ -249,3 +249,7 @@ class TestGotoAssignments(TestCase):
|
||||
param_def = n.goto_assignments()[0]
|
||||
assert param_def.name == 'group'
|
||||
assert param_def.type == 'param'
|
||||
|
||||
def test_parentheses(self):
|
||||
n = names('("").upper', references=True)[-1]
|
||||
assert n.goto_assignments()[0].name == 'upper'
|
||||
|
||||
Reference in New Issue
Block a user