@@ -308,7 +308,7 @@ def f() -> Generator[int, str, int]:
308
308
309
309
[case testAsyncGenerator]
310
310
# flags: --fast-parser --python-version 3.6
311
- from mypy_extensions import AsyncGenerator
311
+ from typing import AsyncGenerator
312
312
313
313
async def f() -> int:
314
314
return 42
@@ -330,7 +330,7 @@ async def h() -> None:
330
330
331
331
[case testAsyncGeneratorManualIter]
332
332
# flags: --fast-parser --python-version 3.6
333
- from mypy_extensions import AsyncGenerator
333
+ from typing import AsyncGenerator
334
334
335
335
async def genfunc() -> AsyncGenerator[int, None]:
336
336
yield 1
@@ -347,7 +347,7 @@ async def user() -> None:
347
347
348
348
[case testAsyncGeneratorAsend]
349
349
# flags: --fast-parser --python-version 3.6
350
- from mypy_extensions import AsyncGenerator
350
+ from typing import AsyncGenerator
351
351
352
352
async def f() -> None:
353
353
pass
@@ -367,7 +367,7 @@ async def h() -> None:
367
367
368
368
[case testAsyncGeneratorAthrow]
369
369
# flags: --fast-parser --python-version 3.6
370
- from mypy_extensions import AsyncGenerator
370
+ from typing import AsyncGenerator
371
371
372
372
async def gen() -> AsyncGenerator[str, int]:
373
373
try:
@@ -385,7 +385,7 @@ async def h() -> None:
385
385
386
386
[case testAsyncGeneratorNoSyncIteration]
387
387
# flags: --fast-parser --python-version 3.6
388
- from mypy_extensions import AsyncGenerator
388
+ from typing import AsyncGenerator
389
389
390
390
async def gen() -> AsyncGenerator[int, None]:
391
391
for i in (1, 2, 3):
@@ -403,7 +403,7 @@ main:9: error: AsyncGenerator[int, None] has no attribute "__iter__"; maybe "__a
403
403
404
404
[case testAsyncGeneratorNoYieldFrom]
405
405
# flags: --fast-parser --python-version 3.6
406
- from mypy_extensions import AsyncGenerator
406
+ from typing import AsyncGenerator
407
407
408
408
async def f() -> AsyncGenerator[int, None]:
409
409
pass
@@ -415,7 +415,7 @@ async def gen() -> AsyncGenerator[int, None]:
415
415
416
416
[case testAsyncGeneratorNoReturnWithValue]
417
417
# flags: --fast-parser --python-version 3.6
418
- from mypy_extensions import AsyncGenerator
418
+ from typing import AsyncGenerator
419
419
420
420
async def gen() -> AsyncGenerator[int, None]:
421
421
yield 1
0 commit comments