Skip to content

Better message when name not available due to --no-implicit-reexport #7251

Closed
@JukkaL

Description

@JukkaL

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions