testing: added test to override generator with annotation

This commit is contained in:
Laurent Soest authored and boerde committed 2021-08-28 21:02:45 +02:00
1 parent 1d944943c3
commit 96b4330ef9
1 file changed
+5
+5
View File
@@ -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()