testing: added test to override generator with annotation

This commit is contained in:
Laurent Soest
2021-08-28 20:43:04 +02:00
committed by boerde
parent 1d944943c3
commit 96b4330ef9

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()