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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Starting with the following using mypy version 0.640:
mypy
0.640
$ python3 -m venv .venv $ .venv/bin/pip install -U aiohttp mypy $ echo "import aiohttp" > test.py
Running .venv/bin/mypy test.py leads to an error:
.venv/bin/mypy test.py
mypy: can't read file '/Users/bryan/Projects/mypy-repro/.venv/lib/python3.7/site-packages/aiohttp/_websocket': No such file or directory
This module is a C module that is imported like this:
if NO_EXTENSIONS: _websocket_mask = _websocket_mask_python else: try: from ._websocket import _websocket_mask_cython # type: ignore _websocket_mask = _websocket_mask_cython except ImportError: # pragma: no cover _websocket_mask = _websocket_mask_python
The text was updated successfully, but these errors were encountered:
Yeah, I can repro this too. And it's a regression from 0.630. :-(
Sorry, something went wrong.
add test to repro python#5784
a0a4959
add test to actually reproduce python#5784
146c26b
4acd48e
Avoid "No such file or directory" if module ancestor doesn't exist (p…
825fbc3
…ython#5785) Fixes python#5784. The fix just adds an `isdir()` call.
gvanrossum
No branches or pull requests
Starting with the following using
mypy
version0.640
:Running
.venv/bin/mypy test.py
leads to an error:This module is a C module that is imported like this:
The text was updated successfully, but these errors were encountered: