Skip to content

Add TarFile.zstopen for 3.14 #14238

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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

max-muoto
Copy link
Contributor

No description provided.

def zstopen(
cls,
name: StrOrBytesPath | None,
mode: Literal["w", "x"],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Runtime validation around supported read/write modes:

  if mode not in ("r", "w", "x"):
      raise ValueError("mode must be 'r', 'w' or 'x'")

@max-muoto max-muoto marked this pull request as draft June 8, 2025 02:13
Copy link
Contributor

github-actions bot commented Jun 8, 2025

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.

1 participant