Skip to content

Support __path__ in packages #1422

Description

@JukkaL

The name __path__ is defined in packages but mypy doesn't recognize it. It seems that every __init__.py[i] file should have an implicit __path__ attribute with type List[str]. (I encountered some code that uses __path__ -- I didn't know about it until today.)

See also: https://docs.python.org/2/tutorial/modules.html#packages-in-multiple-directories

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions