Skip to content

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

alexeev-prog
Copy link

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.

Copy link
Member

@sobolevn sobolevn left a 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.

@overload
def __init__( # noqa: F811
self,
name: StrOrBytesPath | None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: StrOrBytesPath | None,
name: StrOrBytesPath,

@overload
def __init__(
self,
fileobj: _Fileobj,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fileobj: _Fileobj,
fileobj: _Fileobj,
*,

@overload
def __init__( # noqa: F811
self,
name: StrOrBytesPath | None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: StrOrBytesPath | None,
name: StrOrBytesPath,

) -> None: ...
def __init__(
self,
fileobj: _Fileobj,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fileobj: _Fileobj,
fileobj: _Fileobj,
*,

@alexeev-prog
Copy link
Author

Thanks for this!

@alexeev-prog alexeev-prog reopened this May 27, 2025

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@alexeev-prog
Copy link
Author

This is already done?

This comment has been minimized.

@alexeev-prog
Copy link
Author

All the failed tests don't seem to apply to my changes and to the TarFile. Otherwise, everything should work.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants