Skip to content

Name __path__ is not defined (for __init__.py module) #5209

@asottile

Description

@asottile

Simplest reproduction:

# t/__init__.py
print(__path__)
$ python3 -c 'import t'
['/private/tmp/t']
$ mypy t
t/__init__.py:1: error: Name '__path__' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions