Update zipimport for python3.12 (#10240)

The `find_loader` and `find_module` methods were removed: https://github.com/python/cpython/blob/3.12/Lib/zipimport.py
This commit is contained in:
Nikita Sobolev
2023-06-02 18:11:13 +03:00
committed by GitHub
parent 6de0aa0c70
commit 178184c949

View File

@@ -17,8 +17,10 @@ class zipimporter:
else:
def __init__(self, path: StrOrBytesPath) -> None: ...
def find_loader(self, fullname: str, path: str | None = None) -> tuple[zipimporter | None, list[str]]: ... # undocumented
def find_module(self, fullname: str, path: str | None = None) -> zipimporter | None: ...
if sys.version_info < (3, 12):
def find_loader(self, fullname: str, path: str | None = None) -> tuple[zipimporter | None, list[str]]: ... # undocumented
def find_module(self, fullname: str, path: str | None = None) -> zipimporter | None: ...
def get_code(self, fullname: str) -> CodeType: ...
def get_data(self, pathname: str) -> bytes: ...
def get_filename(self, fullname: str) -> str: ...