Skip to content

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. 🤖🎉

@srittau
Copy link
Collaborator

srittau commented Jul 11, 2025

This needs a merge with main now.

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