From ee31999cafa7a7bcbfcb1a18210f388e660b0ede Mon Sep 17 00:00:00 2001 From: hardikpnsp Date: Sat, 9 Oct 2021 02:44:32 +0530 Subject: [PATCH] Add missing methods to ExtensionFileLoader (#6120) Closes: #4769 --- stdlib/importlib/machinery.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/importlib/machinery.pyi b/stdlib/importlib/machinery.pyi index a2e89bb2d..30194f6f2 100644 --- a/stdlib/importlib/machinery.pyi +++ b/stdlib/importlib/machinery.pyi @@ -115,3 +115,7 @@ class ExtensionFileLoader(importlib.abc.ExecutionLoader): def __init__(self, name: str, path: importlib.abc._Path) -> None: ... def get_filename(self, name: str | None = ...) -> importlib.abc._Path: ... def get_source(self, fullname: str) -> None: ... + def create_module(self, spec: ModuleSpec) -> types.ModuleType: ... + def exec_module(self, module: types.ModuleType) -> None: ... + def is_package(self, fullname: str) -> bool: ... + def get_code(self, fullname: str) -> None: ...