Update ModuleType to have __path__ (#6200)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Eric Werner
2021-10-25 22:21:05 +02:00
committed by GitHub
parent ece04a288e
commit fd35084768

View File

@@ -14,6 +14,7 @@ from typing import (
Iterator,
KeysView,
Mapping,
MutableSequence,
Tuple,
Type,
TypeVar,
@@ -174,6 +175,7 @@ class ModuleType:
__dict__: dict[str, Any]
__loader__: _LoaderProtocol | None
__package__: str | None
__path__: MutableSequence[str]
__spec__: ModuleSpec | None
def __init__(self, name: str, doc: str | None = ...) -> None: ...