mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -11,14 +11,10 @@ class ZipImportError(ImportError): ...
|
||||
class zipimporter(object):
|
||||
archive: str
|
||||
prefix: str
|
||||
if sys.version_info >= (3, 6):
|
||||
def __init__(self, path: Union[str, bytes, os.PathLike[Any]]) -> None: ...
|
||||
else:
|
||||
def __init__(self, path: Union[str, bytes]) -> None: ...
|
||||
if sys.version_info >= (3,):
|
||||
def find_loader(
|
||||
self, fullname: str, path: Optional[str] = ...
|
||||
) -> Tuple[Optional[zipimporter], List[str]]: ... # undocumented
|
||||
def __init__(self, path: Union[str, bytes, os.PathLike[Any]]) -> None: ...
|
||||
def find_loader(
|
||||
self, fullname: str, path: Optional[str] = ...
|
||||
) -> Tuple[Optional[zipimporter], List[str]]: ... # undocumented
|
||||
def find_module(self, fullname: str, path: Optional[str] = ...) -> Optional[zipimporter]: ...
|
||||
def get_code(self, fullname: str) -> CodeType: ...
|
||||
def get_data(self, pathname: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user