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
Closespython#953.
I reviewed the documentation at https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.AbstractEventLoop
and added missing methods and missing @coroutine decorators.
I ran mypy on the sample file from the issue report to confirm that mypy handles the combination
of @AbstractMethod and @coroutine correctly.
There are a number of types in this file that are annotated as Any but could be given more precise
types (e.g., sockets and protocol factories). I may submit another PR to fix those separately.
For example
AbstractEventLoop.create_connection
currently has such signaturewhile in docs this is definitely a coroutine. Actually, the same applies to all coroutines in
AbstractEventLoop
.It is impossible to use any loop's coro methods without putting
# type: ignore
on every call.mypy reports
error: Incompatible types in await (actual type Tuple[Any, ...], expected type "Awaitable")
.The text was updated successfully, but these errors were encountered: