mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-26 02:27:22 +08:00
testing: added test to override generator with annotation
This commit is contained in:
1 parent
1d944943c3
commit
96b4330ef9
1 file changed
+5
@@ -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