@@ -308,7 +308,7 @@ def f() -> Generator[int, str, int]:
308308
309309[case testAsyncGenerator]
310310# flags: --fast-parser --python-version 3.6
311- from mypy_extensions import AsyncGenerator
311+ from typing import AsyncGenerator
312312
313313async def f() -> int:
314314 return 42
@@ -330,7 +330,7 @@ async def h() -> None:
330330
331331[case testAsyncGeneratorManualIter]
332332# flags: --fast-parser --python-version 3.6
333- from mypy_extensions import AsyncGenerator
333+ from typing import AsyncGenerator
334334
335335async def genfunc() -> AsyncGenerator[int, None]:
336336 yield 1
@@ -347,7 +347,7 @@ async def user() -> None:
347347
348348[case testAsyncGeneratorAsend]
349349# flags: --fast-parser --python-version 3.6
350- from mypy_extensions import AsyncGenerator
350+ from typing import AsyncGenerator
351351
352352async def f() -> None:
353353 pass
@@ -367,7 +367,7 @@ async def h() -> None:
367367
368368[case testAsyncGeneratorAthrow]
369369# flags: --fast-parser --python-version 3.6
370- from mypy_extensions import AsyncGenerator
370+ from typing import AsyncGenerator
371371
372372async def gen() -> AsyncGenerator[str, int]:
373373 try:
@@ -385,7 +385,7 @@ async def h() -> None:
385385
386386[case testAsyncGeneratorNoSyncIteration]
387387# flags: --fast-parser --python-version 3.6
388- from mypy_extensions import AsyncGenerator
388+ from typing import AsyncGenerator
389389
390390async def gen() -> AsyncGenerator[int, None]:
391391 for i in (1, 2, 3):
@@ -403,7 +403,7 @@ main:9: error: AsyncGenerator[int, None] has no attribute "__iter__"; maybe "__a
403403
404404[case testAsyncGeneratorNoYieldFrom]
405405# flags: --fast-parser --python-version 3.6
406- from mypy_extensions import AsyncGenerator
406+ from typing import AsyncGenerator
407407
408408async def f() -> AsyncGenerator[int, None]:
409409 pass
@@ -415,7 +415,7 @@ async def gen() -> AsyncGenerator[int, None]:
415415
416416[case testAsyncGeneratorNoReturnWithValue]
417417# flags: --fast-parser --python-version 3.6
418- from mypy_extensions import AsyncGenerator
418+ from typing import AsyncGenerator
419419
420420async def gen() -> AsyncGenerator[int, None]:
421421 yield 1
0 commit comments