mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 20:48:47 +08:00
Big refactoring: BaseDefinition._definnition changes to BaseDefinition._name, because it's a NamePart now.
This also includes changes to tests and some simplifications like deleting the old name logic of Definition.
This commit is contained in:
1 parent
58526e2302
commit
9f16555f47
4 files changed
+50
-96
No files matched your search
@@ -5,7 +5,7 @@ from jedi import Script
|
||||
|
||||
def get_definition_and_evaluator(source):
|
||||
d = Script(dedent(source)).goto_definitions()[0]
|
||||
return d._definition.parent.parent, d._evaluator
|
||||
return d._name.parent.parent, d._evaluator
|
||||
|
||||
|
||||
def test_function_execution():
|
||||
|
||||
Reference in new issue
Block a user