You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
9: error: Argument 1 to "wait" has incompatible type "Set[object]"; expected "Iterable[Union[Future[<nothing>], Generator[Any, None, <nothing>], Awaitable[<nothing>]]]"
10: note: Revealed type is 'builtins.set[builtins.object*]'
Found 1 error in 1 file (checked 1 source file)
Expected output:
10: note: Revealed type is 'builtins.set[Union[Awaitable[T], asyncio.Task[None]]]'
The issue disappears if I either
replace Awaitable[T] with Awaitable[None]
replace Task[None] with Task[Any]
This issue is not new in 0.780; however starting from 0.780 asyncio.create_task propagates the return type of its input whereas before it was returning Task[Any], so it makes the issue crop up.
The text was updated successfully, but these errors were encountered:
mypy 0.780 output:
Expected output:
The issue disappears if I either
Awaitable[T]
withAwaitable[None]
Task[None]
withTask[Any]
This issue is not new in 0.780; however starting from 0.780
asyncio.create_task
propagates the return type of its input whereas before it was returningTask[Any]
, so it makes the issue crop up.The text was updated successfully, but these errors were encountered: