mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-19 05:36:17 +08:00
Make sure that jedi.names is not references anymore
This commit is contained in:
1 parent
f90aeceb27
commit
dbb61357c3
8 files changed
+16
-17
No files matched your search
@@ -1,15 +1,14 @@
|
||||
from textwrap import dedent
|
||||
|
||||
from jedi import names
|
||||
from jedi.inference import helpers
|
||||
|
||||
|
||||
def test_call_of_leaf_in_brackets(environment):
|
||||
def test_call_of_leaf_in_brackets(Script):
|
||||
s = dedent("""
|
||||
x = 1
|
||||
type(x)
|
||||
""")
|
||||
last_x = names(s, references=True, definitions=False, environment=environment)[-1]
|
||||
last_x = Script(s).names(references=True, definitions=False)[-1]
|
||||
name = last_x._name.tree_name
|
||||
|
||||
call = helpers.call_of_leaf(name)
|
||||
|
||||
Reference in new issue
Block a user