-
-
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
Better message when name not available due to --no-implicit-reexport #7251
Comments
Hey, @JukkaL I want to take that task for correcting it if no one is on it? |
Sure, nobody is working on this right now. I'll give some pointers tomorrow. |
@samyak-jn The relevant code is in elif module and not missing_submodule:
# Target module exists but the imported name is missing or hidden.
self.report_missing_module_attribute(module_id, id, imported_id, imp) The error message should be changed in this case to say that the name is not an exported name, and it would be nice to add a note explaining how to export a name ( |
Any updates on this? |
No updates. |
I believe #9237 should fix this |
Currently if an imported name is not available because of
--no-implicit-reexport
, mypy just says that it's undefined. This is confusing since it doesn't match runtime semantics. It would be better to say that the name is not an exported name. We could also explain how to mark a name as exported and maybe explain why this check is enabled.#7247 is an example where this came up, but there have been other issues.
The text was updated successfully, but these errors were encountered: