Skip to content

Commit a03f5dc

Browse files
authored
[stdlib] Add _for_archive method for zipfile.ZipInfo
1 parent 281be89 commit a03f5dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/zipfile/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ class ZipInfo:
321321
def from_file(cls, filename: StrPath, arcname: StrPath | None = None, *, strict_timestamps: bool = True) -> Self: ...
322322
def is_dir(self) -> bool: ...
323323
def FileHeader(self, zip64: bool | None = None) -> bytes: ...
324+
if sys.version_info >= (3, 14):
325+
def _for_archive(archive: ZipFile) -> ZipInfo: ...
324326

325327
if sys.version_info >= (3, 12):
326328
from zipfile._path import CompleteDirs as CompleteDirs, Path as Path

0 commit comments

Comments
 (0)