Skip to content

Add TarFile.zstopen for 3.14 - #14238

Closed
max-muoto wants to merge 13 commits into
python:mainfrom
max-muoto:update-zstopen-3.14
Closed

max-muoto wants to merge 13 commits into
python:mainfrom
max-muoto:update-zstopen-3.14

Conversation

@max-muoto

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread stdlib/tarfile.pyi
def zstopen(
cls,
name: StrOrBytesPath | None,
mode: Literal["w", "x"],

Copy link
Copy Markdown
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
@github-actions

github-actions Bot commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

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

@srittau

srittau commented Jul 11, 2025

Copy link
Copy Markdown
Collaborator

This needs a merge with main now.

@Rogdham

Rogdham commented Sep 21, 2025

Copy link
Copy Markdown
Contributor

I think that #14225 has shipped the necessary changes already.

@max-muoto max-muoto closed this Dec 25, 2025
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