-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bug: Imports do not seems to be handled correctly in 0.720 #7247
Comments
This is the expected behavior of the new This is documented in https://mypy.readthedocs.io/en/latest/command_line.html#miscellaneous-strictness-flags. |
Is there any chance we can make the error message clearer? |
Yes, the error message should be clearer. Created #7251 to track this. |
Also, upon further testing, |
That's being fixed in #7099. |
I recently bumped my Mypy version from 0.701 to 0.720. It seems like Mypy's starting to process imported modules residing in the same directory as the one that's being checked. But it does not handle them correctly.
Environment:
Directory Structure:
Content of
mod_a/__init__.py
:Content of
mod_b/__init__.py
:Content of
mod_b/b.py
:Command:
Error message in 0.720(no error in 0.701):
The text was updated successfully, but these errors were encountered: