mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +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())
|
||||
#? float()
|
||||
next(annotation2())
|
||||
|
||||
|
||||
# annotations should override generator inference
|
||||
#? float()
|
||||
annotation1()
|
||||
|
||||
Reference in New Issue
Block a user