Skip to content

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

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

Closed
asottile opened this issue Jun 12, 2018 · 1 comment
Closed

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

asottile opened this issue Jun 12, 2018 · 1 comment

Comments

@asottile
Copy link
Contributor

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
@ilevkivskyi
Copy link
Member

Duplicate of #1422

@ilevkivskyi ilevkivskyi marked this as a duplicate of #1422 Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants