Repository navigation
gh-89730: Fix the parameter name of SSLContext.set_outer_alpn_protocols() in the docs - #162203
Merged
Merged
Conversation
…rotocols() in the docs The method is defined as set_outer_alpn_protocols(self, alpn_protocols), like set_alpn_protocols(), but the docs called the parameter protocols.
Documentation build overview
|
StanFromIreland
marked this pull request as draft
November 18, 2026 20:09
Member
|
Drafting till CLA is signed on #162200. |
Contributor
Author
|
Thanks for the heads-up. The CLA bot on #162200 doesn't recognise the GitHub no-reply address used in the merge commit; I'm getting that address linked to my signed CLA so the backport can go through. |
Member
|
This isn't being backported (since ECH is new in 3.16), so the GitHub noreply CLA doesn't need to block this. |
ZeroIntensity
approved these changes
Nov 22, 2026
Member
I worry the user not being able to sign the CLA sounds like it may just be an autonomous agent. |
Member
|
Yeah, valid. It doesn't matter too much here since this is a tiny docs change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SSLContext.set_outer_alpn_protocols()(new in 3.16, added in GH-160318) is defined inLib/ssl.pyasset_outer_alpn_protocols(self, alpn_protocols), the same parameter name asset_alpn_protocols(). The docs show it asset_outer_alpn_protocols(protocols)and refer to the protocols argument, so a call written from the docs,ctx.set_outer_alpn_protocols(protocols=[...]), raisesTypeError.This changes the signature line and the argument reference in
Doc/library/ssl.rsttoalpn_protocols, matching the code and theset_alpn_protocols()entry just above it. Docs only, so no NEWS entry.The mismatch was found with an AI assistant that compares documented signatures with the
Lib/definitions; the change was then compared withLib/ssl.pyline 539.