-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Support __path__ in packages #1422
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable