Skip to content

Commit 09ccf71

Browse files
Fix incorrect keyword-only arguments in tarfile.open()
1 parent 39cfcde commit 09ccf71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/tarfile.pyi

+6-6
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ class TarFile:
208208
def open(
209209
cls,
210210
name: StrOrBytesPath | None = None,
211-
*,
212211
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"],
213212
fileobj: _Fileobj | None = None,
214213
bufsize: int = 10240,
214+
*,
215215
format: int | None = ...,
216216
tarinfo: type[TarInfo] | None = ...,
217217
dereference: bool | None = ...,
@@ -247,10 +247,10 @@ class TarFile:
247247
def open(
248248
cls,
249249
name: StrOrBytesPath | None = None,
250-
*,
251250
mode: Literal["x:gz", "x:bz2", "w:gz", "w:bz2"],
252251
fileobj: _Fileobj | None = None,
253252
bufsize: int = 10240,
253+
*,
254254
format: int | None = ...,
255255
tarinfo: type[TarInfo] | None = ...,
256256
dereference: bool | None = ...,
@@ -287,10 +287,10 @@ class TarFile:
287287
def open(
288288
cls,
289289
name: StrOrBytesPath | None = None,
290-
*,
291290
mode: Literal["x:xz", "w:xz"],
292291
fileobj: _Fileobj | None = None,
293292
bufsize: int = 10240,
293+
*,
294294
format: int | None = ...,
295295
tarinfo: type[TarInfo] | None = ...,
296296
dereference: bool | None = ...,
@@ -307,10 +307,10 @@ class TarFile:
307307
def open(
308308
cls,
309309
name: StrOrBytesPath | ReadableBuffer | None = None,
310-
*,
311310
mode: Literal["r|*", "r|", "r|gz", "r|bz2", "r|xz"],
312311
fileobj: _Fileobj | None = None,
313312
bufsize: int = 10240,
313+
*,
314314
format: int | None = ...,
315315
tarinfo: type[TarInfo] | None = ...,
316316
dereference: bool | None = ...,
@@ -326,10 +326,10 @@ class TarFile:
326326
def open(
327327
cls,
328328
name: StrOrBytesPath | WriteableBuffer | None = None,
329-
*,
330329
mode: Literal["w|", "w|xz"],
331330
fileobj: _Fileobj | None = None,
332331
bufsize: int = 10240,
332+
*,
333333
format: int | None = ...,
334334
tarinfo: type[TarInfo] | None = ...,
335335
dereference: bool | None = ...,
@@ -345,10 +345,10 @@ class TarFile:
345345
def open(
346346
cls,
347347
name: StrOrBytesPath | WriteableBuffer | None = None,
348-
*,
349348
mode: Literal["w|gz", "w|bz2"],
350349
fileobj: _Fileobj | None = None,
351350
bufsize: int = 10240,
351+
*,
352352
format: int | None = ...,
353353
tarinfo: type[TarInfo] | None = ...,
354354
dereference: bool | None = ...,

0 commit comments

Comments
 (0)