@@ -84,7 +84,7 @@ async def f() -> int:
8484 x = await g()
8585 return x
8686[out]
87- main:7: error: Incompatible types in await (actual type Generator[int, None, str], expected type Awaitable[Any])
87+ main:7: error: Incompatible types in await (actual type " Generator[int, None, str]" , expected type " Awaitable[Any]" )
8888
8989[case testAwaitIteratorError]
9090
@@ -95,7 +95,7 @@ async def f() -> int:
9595 x = await g()
9696 return x
9797[out]
98- main:6: error: Incompatible types in await (actual type Iterator[Any], expected type Awaitable[Any])
98+ main:6: error: Incompatible types in await (actual type " Iterator[Any]" , expected type " Awaitable[Any]" )
9999
100100[case testAwaitArgumentError]
101101
@@ -106,7 +106,7 @@ async def f() -> int:
106106 return x
107107[builtins fixtures/async_await.pyi]
108108[out]
109- main:5: error: Incompatible types in await (actual type "int", expected type Awaitable[Any])
109+ main:5: error: Incompatible types in await (actual type "int", expected type " Awaitable[Any]" )
110110
111111[case testAwaitResultError]
112112
@@ -150,7 +150,7 @@ async def f() -> None:
150150[builtins fixtures/async_await.pyi]
151151[out]
152152main:4: error: AsyncIterable expected
153- main:4: error: List[int] has no attribute "__aiter__"
153+ main:4: error: " List[int]" has no attribute "__aiter__"
154154
155155[case testAsyncForTypeComments]
156156
@@ -232,13 +232,13 @@ async def wrong_iterable(obj: Iterable[int]):
232232
233233[out]
234234main:18: error: AsyncIterable expected
235- main:18: error: Iterable[int] has no attribute "__aiter__"; maybe "__iter__"?
235+ main:18: error: " Iterable[int]" has no attribute "__aiter__"; maybe "__iter__"?
236236main:19: error: Iterable expected
237- main:19: error: asyncify[int] has no attribute "__iter__"; maybe "__aiter__"?
237+ main:19: error: " asyncify[int]" has no attribute "__iter__"; maybe "__aiter__"?
238238main:20: error: AsyncIterable expected
239- main:20: error: Iterable[int] has no attribute "__aiter__"; maybe "__iter__"?
239+ main:20: error: " Iterable[int]" has no attribute "__aiter__"; maybe "__iter__"?
240240main:21: error: Iterable expected
241- main:21: error: asyncify[int] has no attribute "__iter__"; maybe "__aiter__"?
241+ main:21: error: " asyncify[int]" has no attribute "__iter__"; maybe "__aiter__"?
242242[builtins fixtures/async_await.pyi]
243243
244244[case testAsyncWith]
@@ -271,7 +271,7 @@ class C:
271271 def __aenter__(self) -> int: pass
272272 async def __aexit__(self, x, y, z) -> None: pass
273273async def f() -> None:
274- async with C() as x: # E: Incompatible types in "async with" for __aenter__ (actual type "int", expected type Awaitable[Any])
274+ async with C() as x: # E: Incompatible types in "async with" for __aenter__ (actual type "int", expected type " Awaitable[Any]" )
275275 pass
276276[builtins fixtures/async_await.pyi]
277277[out]
@@ -282,7 +282,7 @@ class C:
282282 def __aenter__(self) -> None: pass
283283 async def __aexit__(self, x, y, z) -> None: pass
284284async def f() -> None:
285- async with C() as x: # E: None has no attribute "__await__"
285+ async with C() as x: # E: " None" has no attribute "__await__"
286286 pass
287287[builtins fixtures/async_await.pyi]
288288[out]
@@ -293,7 +293,7 @@ class C:
293293 async def __aenter__(self) -> int: pass
294294 def __aexit__(self, x, y, z) -> int: pass
295295async def f() -> None:
296- async with C() as x: # E: Incompatible types in "async with" for __aexit__ (actual type "int", expected type Awaitable[Any])
296+ async with C() as x: # E: Incompatible types in "async with" for __aexit__ (actual type "int", expected type " Awaitable[Any]" )
297297 pass
298298[builtins fixtures/async_await.pyi]
299299[out]
@@ -304,7 +304,7 @@ class C:
304304 async def __aenter__(self) -> int: pass
305305 def __aexit__(self, x, y, z) -> None: pass
306306async def f() -> None:
307- async with C() as x: # E: None has no attribute "__await__"
307+ async with C() as x: # E: " None" has no attribute "__await__"
308308 pass
309309[builtins fixtures/async_await.pyi]
310310[out]
@@ -362,7 +362,7 @@ def g() -> Generator[Any, None, str]:
362362 return x
363363[builtins fixtures/async_await.pyi]
364364[out]
365- main:6: error: "yield from" can't be applied to Awaitable[str]
365+ main:6: error: "yield from" can't be applied to " Awaitable[str]"
366366
367367[case testAwaitableSubclass]
368368
@@ -523,7 +523,7 @@ def h() -> None:
523523
524524[out]
525525main:9: error: Iterable expected
526- main:9: error: AsyncGenerator[int, None] has no attribute "__iter__"; maybe "__aiter__"?
526+ main:9: error: " AsyncGenerator[int, None]" has no attribute "__iter__"; maybe "__aiter__"?
527527
528528[case testAsyncGeneratorNoYieldFrom]
529529# flags: --fast-parser --python-version 3.6
@@ -607,19 +607,19 @@ def plain_host_generator() -> Generator[str, None, None]:
607607 yield 'a'
608608 x = 0
609609 x = yield from plain_generator()
610- x = yield from plain_coroutine() # E: "yield from" can't be applied to Awaitable[int]
610+ x = yield from plain_coroutine() # E: "yield from" can't be applied to " Awaitable[int]"
611611 x = yield from decorated_generator()
612- x = yield from decorated_coroutine() # E: "yield from" can't be applied to AwaitableGenerator[Any, Any, int, Awaitable[int]]
612+ x = yield from decorated_coroutine() # E: "yield from" can't be applied to " AwaitableGenerator[Any, Any, int, Awaitable[int]]"
613613 x = yield from other_iterator()
614614 x = yield from other_coroutine() # E: "yield from" can't be applied to "Aw"
615615
616616async def plain_host_coroutine() -> None:
617617 x = 0
618- x = await plain_generator() # E: Incompatible types in await (actual type Generator[str, None, int], expected type Awaitable[Any])
618+ x = await plain_generator() # E: Incompatible types in await (actual type " Generator[str, None, int]" , expected type " Awaitable[Any]" )
619619 x = await plain_coroutine()
620620 x = await decorated_generator()
621621 x = await decorated_coroutine()
622- x = await other_iterator() # E: Incompatible types in await (actual type "It", expected type Awaitable[Any])
622+ x = await other_iterator() # E: Incompatible types in await (actual type "It", expected type " Awaitable[Any]" )
623623 x = await other_coroutine()
624624
625625@coroutine
@@ -636,11 +636,11 @@ def decorated_host_generator() -> Generator[str, None, None]:
636636@coroutine
637637async def decorated_host_coroutine() -> None:
638638 x = 0
639- x = await plain_generator() # E: Incompatible types in await (actual type Generator[str, None, int], expected type Awaitable[Any])
639+ x = await plain_generator() # E: Incompatible types in await (actual type " Generator[str, None, int]" , expected type " Awaitable[Any]" )
640640 x = await plain_coroutine()
641641 x = await decorated_generator()
642642 x = await decorated_coroutine()
643- x = await other_iterator() # E: Incompatible types in await (actual type "It", expected type Awaitable[Any])
643+ x = await other_iterator() # E: Incompatible types in await (actual type "It", expected type " Awaitable[Any]" )
644644 x = await other_coroutine()
645645
646646[builtins fixtures/async_await.pyi]
0 commit comments