We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbab356 commit 9769a48Copy full SHA for 9769a48
pytype/tests/test_async_generators.py
@@ -406,6 +406,20 @@ async def gen():
406
x4: Coroutine[Any, Any, None] = gen().aclose()
407
""")
408
409
+ @test_utils.skipBeforePy((3, 11), "New in 3.11")
410
+ def test_async_for(self):
411
+ self.Check("""
412
+ async def iterate(num):
413
+ try:
414
+ async for s in range(num): # pytype: disable=attribute-error
415
+ if s > 3:
416
+ yield ''
417
+ except ValueError as e:
418
419
420
+ """)
421
+
422
423
424
if __name__ == "__main__":
425
test_base.main()
0 commit comments