https://github.com/python/cpython/commit/ab986efa3ece1963e13c119ec1d3af7b233bddf5
commit: ab986efa3ece1963e13c119ec1d3af7b233bddf5
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: encukou <[email protected]>
date: 2026-10-13T13:44:41+02:00
summary:

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

(cherry picked from commit dc72be1923a37042aee60354059e43d472de7803)

Co-authored-by: Solaris-star <[email protected]>

files:
M Doc/library/annotationlib.rst

diff --git a/Doc/library/annotationlib.rst b/Doc/library/annotationlib.rst
index 5703564c5a7d5d..5b22353ea08e64 100644
--- a/Doc/library/annotationlib.rst
+++ b/Doc/library/annotationlib.rst
@@ -535,9 +535,9 @@ following attributes:
   :attr:`~Format.VALUE_WITH_FAKE_GLOBALS`.
 * A :ref:`code object <code-objects>` ``__code__`` containing the compiled 
code for the
   annotate function.
-* Optional: A tuple of the function's positional defaults ``__kwdefaults__``, 
if the
+* Optional: A tuple of the function's positional defaults ``__defaults__``, if 
the
   function represented by ``__code__`` uses any positional defaults.
-* Optional: A dict of the function's keyword defaults ``__defaults__``, if the 
function
+* Optional: A dict of the function's keyword defaults ``__kwdefaults__``, if 
the function
   represented by ``__code__`` uses any keyword defaults.
 * Optional: All other :ref:`function attributes <inspect-types>`.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to