mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
stdlib: Improve many __iter__ and constructor methods (#7112)
This commit is contained in:
@@ -212,10 +212,12 @@ class ZipInfo:
|
||||
def __init__(self, filename: str = ..., date_time: _DateTuple = ...) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@classmethod
|
||||
def from_file(cls, filename: StrPath, arcname: StrPath | None = ..., *, strict_timestamps: bool = ...) -> ZipInfo: ...
|
||||
def from_file(
|
||||
cls: type[Self], filename: StrPath, arcname: StrPath | None = ..., *, strict_timestamps: bool = ...
|
||||
) -> Self: ...
|
||||
else:
|
||||
@classmethod
|
||||
def from_file(cls, filename: StrPath, arcname: StrPath | None = ...) -> ZipInfo: ...
|
||||
def from_file(cls: type[Self], filename: StrPath, arcname: StrPath | None = ...) -> Self: ...
|
||||
|
||||
def is_dir(self) -> bool: ...
|
||||
def FileHeader(self, zip64: bool | None = ...) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user