-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
In python 2, ModuleType declares to have an optional __path__:
Line 131 in 3d14016
| __path__: Optional[Iterable[str]] |
However in Python 3, such field is missing:
typeshed/stdlib/3/_importlib_modulespec.pyi
Lines 35 to 42 in 3d14016
| class ModuleType: | |
| __name__: str | |
| __file__: str | |
| __dict__: Dict[str, Any] | |
| __loader__: Optional[_Loader] | |
| __package__: Optional[str] | |
| __spec__: Optional[ModuleSpec] | |
| def __init__(self, name: str, doc: Optional[str] = ...) -> None: ... |
Metadata
Metadata
Assignees
Labels
No labels