From fd35084768354586a6ca97db833d3fb8692d036a Mon Sep 17 00:00:00 2001 From: Eric Werner Date: Mon, 25 Oct 2021 22:21:05 +0200 Subject: [PATCH] Update `ModuleType` to have `__path__` (#6200) Co-authored-by: Akuli --- stdlib/types.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/types.pyi b/stdlib/types.pyi index e18c5bd3f..e60c6475e 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -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: ...