Skip to content

Commit 723526b

Browse files
Update dependency pyright to v1.1.399 (#13813)
1 parent 4a89c1b commit 723526b

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
33
mypy==1.15.0
4-
pyright==1.1.398
4+
pyright==1.1.399
55
# pytype can be installed on Windows, but requires building wheels, let's not do that on the CI
66
pytype==2024.10.11; platform_system != "Windows" and python_version >= "3.10" and python_version < "3.13"
77

stdlib/tarfile.pyi

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,25 @@ class TarFile:
304304
) -> Self: ...
305305
@overload
306306
@classmethod
307+
def open(
308+
cls,
309+
name: StrOrBytesPath | ReadableBuffer | None,
310+
mode: Literal["r|*", "r|", "r|gz", "r|bz2", "r|xz"],
311+
fileobj: _Fileobj | None = None,
312+
bufsize: int = 10240,
313+
*,
314+
format: int | None = ...,
315+
tarinfo: type[TarInfo] | None = ...,
316+
dereference: bool | None = ...,
317+
ignore_zeros: bool | None = ...,
318+
encoding: str | None = ...,
319+
errors: str = ...,
320+
pax_headers: Mapping[str, str] | None = ...,
321+
debug: int | None = ...,
322+
errorlevel: int | None = ...,
323+
) -> Self: ...
324+
@overload
325+
@classmethod
307326
def open(
308327
cls,
309328
name: StrOrBytesPath | ReadableBuffer | None = None,
@@ -323,6 +342,25 @@ class TarFile:
323342
) -> Self: ...
324343
@overload
325344
@classmethod
345+
def open(
346+
cls,
347+
name: StrOrBytesPath | WriteableBuffer | None,
348+
mode: Literal["w|", "w|xz"],
349+
fileobj: _Fileobj | None = None,
350+
bufsize: int = 10240,
351+
*,
352+
format: int | None = ...,
353+
tarinfo: type[TarInfo] | None = ...,
354+
dereference: bool | None = ...,
355+
ignore_zeros: bool | None = ...,
356+
encoding: str | None = ...,
357+
errors: str = ...,
358+
pax_headers: Mapping[str, str] | None = ...,
359+
debug: int | None = ...,
360+
errorlevel: int | None = ...,
361+
) -> Self: ...
362+
@overload
363+
@classmethod
326364
def open(
327365
cls,
328366
name: StrOrBytesPath | WriteableBuffer | None = None,
@@ -342,6 +380,26 @@ class TarFile:
342380
) -> Self: ...
343381
@overload
344382
@classmethod
383+
def open(
384+
cls,
385+
name: StrOrBytesPath | WriteableBuffer | None,
386+
mode: Literal["w|gz", "w|bz2"],
387+
fileobj: _Fileobj | None = None,
388+
bufsize: int = 10240,
389+
*,
390+
format: int | None = ...,
391+
tarinfo: type[TarInfo] | None = ...,
392+
dereference: bool | None = ...,
393+
ignore_zeros: bool | None = ...,
394+
encoding: str | None = ...,
395+
errors: str = ...,
396+
pax_headers: Mapping[str, str] | None = ...,
397+
debug: int | None = ...,
398+
errorlevel: int | None = ...,
399+
compresslevel: int = 9,
400+
) -> Self: ...
401+
@overload
402+
@classmethod
345403
def open(
346404
cls,
347405
name: StrOrBytesPath | WriteableBuffer | None = None,

0 commit comments

Comments
 (0)