We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With current version of mypy any project using AsyncioExecutor with loop= argument provided as follows:
mypy
AsyncioExecutor
loop=
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.
asyncio.get_event_loop()
asyncio.AbstractEventLoop
asyncio._UnixSelectorEventLoop
type definition:
graphql-core-legacy/graphql/execution/executors/asyncio.py
Line 54 in 26b0fc0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
With current version of
mypy
any project usingAsyncioExecutor
withloop=
argument provided as follows:fails type check with following error
Basically
asyncio.get_event_loop()
returnsasyncio.AbstractEventLoop
object, and AsyncioExecutor expectsasyncio._UnixSelectorEventLoop
.type definition:
graphql-core-legacy/graphql/execution/executors/asyncio.py
Line 54 in 26b0fc0
The text was updated successfully, but these errors were encountered: