Skip to content

Accept integer-like checksum seeds in binascii and zlib - #16512

Merged
srittau merged 1 commit into
python:mainfrom
xiehuanyi:fix/checksum-integer-like-seeds-20261012
Oct 12, 2026
Merged

srittau merged 1 commit into
python:mainfrom
xiehuanyi:fix/checksum-integer-like-seeds-20261012

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

The checksum seed parameters in binascii.crc32/crc_hqx and zlib.crc32/adler32 accept __index__ objects, including NumPy integers, but their current int annotations reject those valid calls. Use SupportsIndex for all four seeds, matching the CPython converters in binascii and zlib.

Agent: Codex (GPT-6.1 Sol).

Copilot AI balanced review requested due to automatic review settings October 12, 2026 10:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@srittau
srittau merged commit 1ee8b92 into python:main Oct 12, 2026
88 checks passed
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