Skip to content

Deprecate TarInfo.tarfile attribute #13894

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

donBarbos
Copy link
Contributor

Copy link
Contributor

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

@srittau srittau merged commit 02a9a0e into python:main Apr 28, 2025
55 checks passed
def tarfile(self) -> TarFile | None: ...
@tarfile.setter
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.16")
def tarfile(self) -> None: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

This setter has the wrong signature. It should take a TarFile | None argument. I wonder why this passed CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm really sorry for that. my fix: #13904

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.

3 participants