Skip to content

[3.15] gh-154320: Fix swapped __defaults__/__kwdefaults__ in annotationlib docs (GH-154321) - #154350

Merged
encukou merged 2 commits into
python:3.15from
miss-islington:backport-dc72be1-3.15
Oct 13, 2026
Merged

encukou merged 2 commits into
python:3.15from
miss-islington:backport-dc72be1-3.15

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

The bullet list under "Creating a custom callable annotate function"
had the attribute names reversed: positional defaults are defaults
(a tuple) and keyword defaults are kwdefaults (a dict). The example
code below was already correct.

Fixes GH-154320
(cherry picked from commit dc72be1)

Co-authored-by: Solaris-star 67425364+Solaris-star@users.noreply.github.com

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 21, 2026
@python-cla-bot

python-cla-bot Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@StanFromIreland

Copy link
Copy Markdown
Member

@Solaris-star can you please sign the CLA again, you can read more about why this is necessary in the devguide.

@StanFromIreland

Copy link
Copy Markdown
Member

Little ping @Solaris-star :-)

@StanFromIreland

Copy link
Copy Markdown
Member

Pinging @Solaris-star

…nlib docs (pythonGH-154321)

The bullet list under "Creating a custom callable annotate function"
had the attribute names reversed: positional defaults are __defaults__
(a tuple) and keyword defaults are __kwdefaults__ (a dict). The example
code below was already correct.

Fixes pythonGH-154320
(cherry picked from commit dc72be1)
@encukou

encukou commented Oct 13, 2026

Copy link
Copy Markdown
Member

On this trivial change, the exact email doesn't matter for copyright purposes, so I'll force-push a commit with the previous address.

@encukou
encukou force-pushed the backport-dc72be1-3.15 branch from 635238c to 2291638 Compare October 13, 2026 09:41
@encukou
encukou merged commit ab986ef into python:3.15 Oct 13, 2026
33 checks passed
@miss-islington
miss-islington deleted the backport-dc72be1-3.15 branch October 13, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants