Skip to content

Obvious keywords misuse for "__kwdefaults__" and "__defaults__" #154320

Description

@hikorp

Documentation

Location: 3.14.6 Documentation » The Python Standard Library » Python Runtime Services » annotationlib — Functionality for introspecting annotations
Under: "Creating a custom callable annotate function"

"Optional: A tuple of the function’s positional defaults __kwdefaults__, if the function represented by __code__ uses any positional defaults.
Optional: A dict of the function’s keyword defaults __defaults__, if the function represented by __code__ uses any keyword defaults."

The keywords " __kwdefaults__" and "__defaults__" are misused obviously.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions