mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-02 13:47:31 +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:
1 parent
69e6139527
commit
7b0bb83d16
2 files changed
+19
-17
No files matched your search
@@ -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