mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[zipfile] Add _for_archive method for zipfile.ZipInfo (#15077)
This commit is contained in:
@@ -321,6 +321,8 @@ class ZipInfo:
|
||||
def from_file(cls, filename: StrPath, arcname: StrPath | None = None, *, strict_timestamps: bool = True) -> Self: ...
|
||||
def is_dir(self) -> bool: ...
|
||||
def FileHeader(self, zip64: bool | None = None) -> bytes: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
def _for_archive(self, archive: ZipFile) -> Self: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
from zipfile._path import CompleteDirs as CompleteDirs, Path as Path
|
||||
|
||||
Reference in New Issue
Block a user