Skip to content
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

Doesn't find imports >= 5 levels deep #14

Closed
CoenSchalkwijk opened this issue Feb 12, 2018 · 1 comment
Closed

Doesn't find imports >= 5 levels deep #14

CoenSchalkwijk opened this issue Feb 12, 2018 · 1 comment

Comments

@CoenSchalkwijk
Copy link

CoenSchalkwijk commented Feb 12, 2018

linter-mypy v2.5.2, Atom 1.23.3, Python 3.5.2. In a file OtherClassName.py:

from A.B.C.D.E.className import ClassName

"Cannot find module" warning is issued. Moving ClassName to parent folder, adjusting import to:

from A.B.C.D.className import ClassName

No problem finding module.

Adding $PROJECT_PATH/A/B/C/D/E or dot to MyPy path does not help.

@CoenSchalkwijk
Copy link
Author

CoenSchalkwijk commented Feb 12, 2018

Darnit: there was no

__init__.py

in the folder.... Adding this, solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant