Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-dc72be1-3.14
Open

[3.14] gh-154320: Fix swapped __defaults__/__kwdefaults__ in annotationlib docs (GH-154321)#154351
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-dc72be1-3.14

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

…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 dc72be1923a37042aee60354059e43d472de7803)

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

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants