-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
mypy cannot find module installed as editable by pip #7508
Comments
Does the package have a |
@ethanhs I created two blank files Mypy is still unable to import the |
I don't think this should matter, but does the |
Also could you try running |
@ethanhs No to the former.
|
@tsoernes if you add See the documentation too https://mypy.readthedocs.io/en/latest/installed_packages.html#making-pep-561-compatible-packages |
It certainly does! Thanks a lot. |
Great! Glad that worked. Maybe we should have a common issues section related to PEP 561 packages not working... |
I have a module installed as editable by pip, i.e.
pip install -e ..
. Mypy cannot import it, even when run aspython -m mypy
:~/.config/mypy/config
:Installing a module as editable creates an egg link in the virtual env, whatever that is:
(I'm running mypy inside of the anaconda virtual env. Python is able to find the module)
The text was updated successfully, but these errors were encountered: