Closed
Description
With current version of mypy
any project using AsyncioExecutor
with loop=
argument provided as follows:
executor = AsyncioExecutor(loop=asyncio.get_event_loop())
fails type check with following error
***: error: Argument "loop" to "AsyncioExecutor" has incompatible type "AbstractEventLoop"; expected "Optional[_UnixSelectorEventLoop]"
Basically asyncio.get_event_loop()
returns asyncio.AbstractEventLoop
object, and AsyncioExecutor expects asyncio._UnixSelectorEventLoop
.
type definition:
Metadata
Metadata
Assignees
Labels
No labels