mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
testing: added test to override generator with annotation
This commit is contained in:
@@ -309,3 +309,8 @@ def annotation2() -> Iterator[float]:
|
|||||||
next(annotation1())
|
next(annotation1())
|
||||||
#? float()
|
#? float()
|
||||||
next(annotation2())
|
next(annotation2())
|
||||||
|
|
||||||
|
|
||||||
|
# annotations should override generator inference
|
||||||
|
#? float()
|
||||||
|
annotation1()
|
||||||
|
|||||||
Reference in New Issue
Block a user