From d6cc3236c86f7482516721c23f1636024f3da9b7 Mon Sep 17 00:00:00 2001 From: Oz Anani Date: Fri, 22 Oct 2021 18:02:04 +0300 Subject: [PATCH] Update ModuleType.__file__ to be Optional Per the Python documentation, `ModuleType.__file__` is `Optional`: https://docs.python.org/3/reference/import.html#file__ --- stdlib/types.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/types.pyi b/stdlib/types.pyi index e18c5bd3f550..16069ce20451 100644 --- a/stdlib/types.pyi +++ b/stdlib/types.pyi @@ -170,7 +170,7 @@ class SimpleNamespace: class ModuleType: __name__: str - __file__: str + __file__: str | None __dict__: dict[str, Any] __loader__: _LoaderProtocol | None __package__: str | None