-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fixing issue 14168 with None/None case in TarFile #14172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
4391d31
1770440
6b387d5
b652aac
f3f21dd
f0a4410
6f4f644
1e03be9
082f762
0ec9a85
a7a5e8d
7eae058
69938e9
5e4f00b
5f3c820
d47a5da
51b46c9
5fded29
5a117a4
b0a3c2e
3c86c48
dbd91b9
a10400f
df4bc3a
0076976
44b2e2f
9f28a91
eb6b65d
81656dc
04b0e6e
e6bef29
31e4037
ea4c762
192db66
d815ec5
649d343
eaa1ed4
785d98e
39b75da
8469631
9962f17
b185659
6986131
514cc8d
b9e8212
ec43fbe
11e9ef3
2f4f03b
d3f5312
4ebcaa7
b6843a8
f41e41b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -125,7 +125,7 @@ | |||||||
extraction_filter: _FilterFunction | None | ||||||||
if sys.version_info >= (3, 13): | ||||||||
stream: bool | ||||||||
def __init__( | ||||||||
Check failure on line 128 in stdlib/tarfile.pyi
|
||||||||
self, | ||||||||
name: StrOrBytesPath | None = None, | ||||||||
mode: Literal["r", "a", "w", "x"] = "r", | ||||||||
|
@@ -142,6 +142,42 @@ | |||||||
copybufsize: int | None = None, # undocumented | ||||||||
stream: bool = False, | ||||||||
) -> None: ... | ||||||||
@overload | ||||||||
def __init__( # noqa: F811 | ||||||||
self, | ||||||||
name: StrOrBytesPath | None, | ||||||||
mode: Literal["r", "a", "w", "x"] = "r", | ||||||||
fileobj: _Fileobj | None = None, | ||||||||
format: int | None = None, | ||||||||
tarinfo: type[TarInfo] | None = None, | ||||||||
dereference: bool | None = None, | ||||||||
ignore_zeros: bool | None = None, | ||||||||
encoding: str | None = None, | ||||||||
errors: str = "surrogateescape", | ||||||||
pax_headers: Mapping[str, str] | None = None, | ||||||||
debug: int | None = None, | ||||||||
errorlevel: int | None = None, | ||||||||
copybufsize: int | None = None, # undocumented | ||||||||
stream: bool = False, | ||||||||
) -> None: ... | ||||||||
@overload | ||||||||
def __init__( | ||||||||
self, | ||||||||
fileobj: _Fileobj, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
name: StrOrBytesPath | None = None, | ||||||||
mode: Literal["r", "a", "w", "x"] = "r", | ||||||||
format: int | None = None, | ||||||||
tarinfo: type[TarInfo] | None = None, | ||||||||
dereference: bool | None = None, | ||||||||
ignore_zeros: bool | None = None, | ||||||||
encoding: str | None = None, | ||||||||
errors: str = "surrogateescape", | ||||||||
pax_headers: Mapping[str, str] | None = None, | ||||||||
debug: int | None = None, | ||||||||
errorlevel: int | None = None, | ||||||||
copybufsize: int | None = None, # undocumented | ||||||||
stream: bool = False, | ||||||||
) -> None: ... | ||||||||
else: | ||||||||
def __init__( | ||||||||
self, | ||||||||
|
@@ -159,6 +195,39 @@ | |||||||
errorlevel: int | None = None, | ||||||||
copybufsize: int | None = None, # undocumented | ||||||||
) -> None: ... | ||||||||
@overload | ||||||||
def __init__( # noqa: F811 | ||||||||
self, | ||||||||
name: StrOrBytesPath | None, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
mode: Literal["r", "a", "w", "x"] = "r", | ||||||||
fileobj: _Fileobj | None = None, | ||||||||
format: int | None = None, | ||||||||
tarinfo: type[TarInfo] | None = None, | ||||||||
dereference: bool | None = None, | ||||||||
ignore_zeros: bool | None = None, | ||||||||
encoding: str | None = None, | ||||||||
errors: str = "surrogateescape", | ||||||||
pax_headers: Mapping[str, str] | None = None, | ||||||||
debug: int | None = None, | ||||||||
errorlevel: int | None = None, | ||||||||
copybufsize: int | None = None, # undocumented | ||||||||
) -> None: ... | ||||||||
def __init__( | ||||||||
self, | ||||||||
fileobj: _Fileobj, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
name: StrOrBytesPath | None = None, | ||||||||
mode: Literal["r", "a", "w", "x"] = "r", | ||||||||
format: int | None = None, | ||||||||
tarinfo: type[TarInfo] | None = None, | ||||||||
dereference: bool | None = None, | ||||||||
ignore_zeros: bool | None = None, | ||||||||
encoding: str | None = None, | ||||||||
errors: str = "surrogateescape", | ||||||||
pax_headers: Mapping[str, str] | None = None, | ||||||||
debug: int | None = None, | ||||||||
errorlevel: int | None = None, | ||||||||
copybufsize: int | None = None, # undocumented | ||||||||
) -> None: ... | ||||||||
|
||||||||
def __enter__(self) -> Self: ... | ||||||||
def __exit__( | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.