]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43532: add version added to KW_ONLY (GH-31235)
authorHenry Schreiner <HenrySchreinerIII@gmail.com>
Wed, 9 Feb 2022 20:56:10 +0000 (15:56 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Feb 2022 20:56:10 +0000 (12:56 -0800)
Minor missing version note mentioned at the end of  (and affected me independently before reading that note).

Automerge-Triggered-By: GH:ericvsmith
Doc/library/dataclasses.rst

index 0bac594f05617322260a89b3974467d5dc7a2347..0f6985f0ba8c42b85abe0dabbc2f47948a700913 100644 (file)
@@ -475,6 +475,8 @@ Module contents
    In a single dataclass, it is an error to specify more than one
    field whose type is :const:`KW_ONLY`.
 
+   .. versionadded:: 3.10
+
 .. exception:: FrozenInstanceError
 
    Raised when an implicitly defined :meth:`__setattr__` or