]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-13406...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 May 2025 08:06:04 +0000 (10:06 +0200)
committerGitHub <noreply@github.com>
Sat, 17 May 2025 08:06:04 +0000 (08:06 +0000)
gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-134065)
(cherry picked from commit 9d73875072e20bf3cc87cadc553d6a6fb4f71df5)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Doc/library/dataclasses.rst

index 72612211b43d5e77b902bb683a5ed98b5b9c8434..f18c7cc9c02da6b9e81030f1b29fcd87736b39c7 100644 (file)
@@ -304,9 +304,9 @@ Module contents
 
     .. versionadded:: 3.10
 
-   - ``doc``: optional docstring for this field.
+   - *doc*: optional docstring for this field.
 
-    .. versionadded:: 3.13
+    .. versionadded:: 3.14
 
    If the default value of a field is specified by a call to
    :func:`!field`, then the class attribute for this field will be