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())
|
next(annotation1())
|
||||||
#? float()
|
#? float()
|
||||||
next(annotation2())
|
next(annotation2())
|
||||||
|
|
||||||
|
|
||||||
|
# annotations should override generator inference
|
||||||
|
#? float()
|
||||||
|
annotation1()
|
||||||
Reference in new issue
Block a user