-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
start fixing issue 14168 with 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?
Conversation
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.
please, don't forget about .open
and other methods.
stdlib/tarfile.pyi
Outdated
@overload | ||
def __init__( # noqa: F811 | ||
self, | ||
name: StrOrBytesPath | None, |
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.
name: StrOrBytesPath | None, | |
name: StrOrBytesPath, |
@overload | ||
def __init__( | ||
self, | ||
fileobj: _Fileobj, |
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.
fileobj: _Fileobj, | |
fileobj: _Fileobj, | |
*, |
stdlib/tarfile.pyi
Outdated
@overload | ||
def __init__( # noqa: F811 | ||
self, | ||
name: StrOrBytesPath | None, |
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.
name: StrOrBytesPath | None, | |
name: StrOrBytesPath, |
) -> None: ... | ||
def __init__( | ||
self, | ||
fileobj: _Fileobj, |
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.
fileobj: _Fileobj, | |
fileobj: _Fileobj, | |
*, |
Thanks for this! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is already done? |
This comment has been minimized.
This comment has been minimized.
All the failed tests don't seem to apply to my changes and to the TarFile. Otherwise, everything should work. |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
it is my first PR, please sorry if this not solving issue. Please, if something is wrong, write. I'm just starting this exciting journey in contributing.