Skip to content

Commit

Permalink
add "w:tar" as a mode for tarfile
Browse files Browse the repository at this point in the history
this is an alias for `"w:"` according to the code (which defaults the second segment to `"tar"`)
  • Loading branch information
asottile authored Jan 14, 2025
1 parent 1017916 commit 0fda1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/tarfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def open(
@overload
def open(
name: StrOrBytesPath | None,
mode: Literal["x", "x:", "a", "a:", "w", "w:"],
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"],
fileobj: _Fileobj | None = None,
bufsize: int = 10240,
*,
Expand All @@ -141,7 +141,7 @@ def open(
def open(
name: StrOrBytesPath | None = None,
*,
mode: Literal["x", "x:", "a", "a:", "w", "w:"],
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"],
fileobj: _Fileobj | None = None,
bufsize: int = 10240,
format: int | None = ...,
Expand Down

0 comments on commit 0fda1f7

Please sign in to comment.