Skip to content

Fix callback parameter type in ssl.SSLContext.set_psk_server_callback#12932

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
brianschubert:gh-12931-ssl-set-psk-server-callback
Oct 31, 2024
Merged

Fix callback parameter type in ssl.SSLContext.set_psk_server_callback#12932
JelleZijlstra merged 1 commit intopython:mainfrom
brianschubert:gh-12931-ssl-set-psk-server-callback

Conversation

@brianschubert
Copy link
Collaborator

@brianschubert brianschubert commented Oct 31, 2024

Fixes #12931

For reference (docs):

The parameter callback is a callable object with the signature: def callback(identity: str | None) -> bytes.

@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit d262beb into python:main Oct 31, 2024
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.

Bug in ssl.set_psk_server_callback callback type signature

2 participants