Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stdlib/tarfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class TarFile:
errors: str
fileobject: type[ExFileObject] # undocumented
pax_headers: Mapping[str, str]
debug: int
errorlevel: int
debug: Literal[0, 1, 2, 3]
errorlevel: Literal[0, 1, 2]
offset: int # undocumented
extraction_filter: _FilterFunction | None
if sys.version_info >= (3, 13):
Expand All @@ -146,8 +146,8 @@ class TarFile:
encoding: str | None = None,
errors: str = "surrogateescape",
pax_headers: Mapping[str, str] | None = None,
debug: int | None = None,
errorlevel: int | None = None,
debug: Literal[0, 1, 2, 3] | None = None, # default 0
errorlevel: Literal[0, 1, 2] | None = None, # default 1
copybufsize: int | None = None, # undocumented
stream: bool = False,
) -> None: ...
Expand Down