Skip to content

Commit 1012870

Browse files
authored
add "w:tar" as a mode for tarfile (#13401)
1 parent 1017916 commit 1012870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/tarfile.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def open(
123123
@overload
124124
def open(
125125
name: StrOrBytesPath | None,
126-
mode: Literal["x", "x:", "a", "a:", "w", "w:"],
126+
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"],
127127
fileobj: _Fileobj | None = None,
128128
bufsize: int = 10240,
129129
*,
@@ -141,7 +141,7 @@ def open(
141141
def open(
142142
name: StrOrBytesPath | None = None,
143143
*,
144-
mode: Literal["x", "x:", "a", "a:", "w", "w:"],
144+
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"],
145145
fileobj: _Fileobj | None = None,
146146
bufsize: int = 10240,
147147
format: int | None = ...,

0 commit comments

Comments
 (0)