Skip to content

Fix SHAKE return types for hashlib.new - #16481

Open
subotac wants to merge 1 commit into
python:mainfrom
subotac:fix/hashlib-shake-new-types
Open

subotac wants to merge 1 commit into
python:mainfrom
subotac:fix/hashlib-shake-new-types

Conversation

@subotac

@subotac subotac commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Closes #16480.

Add SHAKE and fixed-digest overloads for hashlib.new() and _hashlib.new(), withл an optional-length hash protocol for dynamic algorithm names

[SHAKE digest API]https://docs.python.org/3/library/hashlib.html#shake-variable-length-digests)

This branch has not been deployed

No deployments
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.

hashlib digest() fails typecheck for variable-length digests SHAKE-128 and SHAKE-256

1 participant