You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Obvious keywords misuse for "__kwdefaults__" and "__defaults__" #154320
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.
Activity
gh-154320: Fix swapped __defaults__/__kwdefaults__ in annotationlib d…
pythongh-154320: Fix swapped __defaults__/__kwdefaults__ in annotatio…
[3.15] gh-154320: Fix swapped __defaults__/__kwdefaults__ in annotati…