-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
How to configure mypy_path for my local imports? #7389
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
Comments
My layout
Inside quizzes.py I have And when I run (inside classroom folder) I got the error |
The key seems to be the current working directory. If I type check the code using Mypy should probably find the root of the package hierarchy (by looking at |
Is this really a bug? Just running I don't see why |
Since the current behavior is already documented, I agree that this can be closed. However, I still think that mypy could do better here to help beginners. I'll create a separate issue about generating a better error messages -- we could detect the issue and ask the user to change the current working directory. |
Note: if you are reporting a wrong signature of a function or a class in
the standard library, then the typeshed tracker is better suited
for this report: https://github.com/python/typeshed/issues
Please provide more information to help us understand the issue:
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Do you see the same issue after installing mypy from Git master?
the full traceback below.
(You can freely edit this text, please remove all the lines
you believe are unnecessary.)
The text was updated successfully, but these errors were encountered: