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
As it seems to be an issue on mypy and on asyncio, I've reported it on both sides, even though I'm not sure exactly where the problem(s) is(are).
Some asyncio modules cannot be found with mypy. And cannot be silenced/skipped by mypy.
Have the following 3 files:
# example1.pyfromasyncioimportBaseEventLoop# Module 'asyncio' has no attribute 'BaseEventLoop'fromasyncioimportSemaphore# OKimportaiostream# gets skipped correctlyimportasyncio# OKasyncio.windows_events.WindowsProactorEventLoopPolicy() # Module has no attribute 'windows_events'asyncio.WindowsProactorEventLoopPolicy() # Module has no attribute 'WindowsProactorEventLoopPolicy'
$> pipenv install
#...
$> pipenv run python -m mypy --config-file mypy.ini example1.py
example1.py:1: error: Module 'asyncio' has no attribute 'BaseEventLoop'
example1.py:5: error: Module has no attribute "windows_events"
example1.py:6: error: Module has no attribute "WindowsProactorEventLoopPolicy"
Why Semaphore (and others) works and BaseEventLoop (among others) doesn't work... no idea.
But it completely breaks mypy that it somehow cannot be skipped nor silenced.
The text was updated successfully, but these errors were encountered:
As it seems to be an issue on mypy and on asyncio, I've reported it on both sides, even though I'm not sure exactly where the problem(s) is(are).
Some asyncio modules cannot be found with mypy. And cannot be silenced/skipped by mypy.
Have the following 3 files:
Why Semaphore (and others) works and BaseEventLoop (among others) doesn't work... no idea.
But it completely breaks mypy that it somehow cannot be skipped nor silenced.
The text was updated successfully, but these errors were encountered: