mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 17:52:35 +08:00
Fix generator issues for typing
This commit is contained in:
1 parent
26951f5c18
commit
eef02e5c56
4 files changed
+13
-4
No files matched your search
@@ -128,7 +128,7 @@ def test_goto_definitions_on_non_name(Script):
|
||||
|
||||
def test_goto_definitions_on_generator(Script):
|
||||
def_, = Script('def x(): yield 1\ny=x()\ny').goto_definitions()
|
||||
assert def_.name == 'generator'
|
||||
assert def_.name == 'Generator'
|
||||
|
||||
|
||||
def test_goto_definition_not_multiple(Script):
|
||||
|
||||
Reference in new issue
Block a user