mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
inheritance for zipimporter (#12920)
This commit is contained in:
@@ -5,11 +5,16 @@ from importlib.machinery import ModuleSpec
|
||||
from types import CodeType, ModuleType
|
||||
from typing_extensions import deprecated
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
from _frozen_importlib_external import _LoaderBasics
|
||||
else:
|
||||
_LoaderBasics = object
|
||||
|
||||
__all__ = ["ZipImportError", "zipimporter"]
|
||||
|
||||
class ZipImportError(ImportError): ...
|
||||
|
||||
class zipimporter:
|
||||
class zipimporter(_LoaderBasics):
|
||||
archive: str
|
||||
prefix: str
|
||||
if sys.version_info >= (3, 11):
|
||||
|
||||
Reference in New Issue
Block a user