mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user