]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43532: add version added to KW_ONLY (GH-31235)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 Feb 2022 21:18:52 +0000 (13:18 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Feb 2022 21:18:52 +0000 (13:18 -0800)
Minor missing version note mentioned at the end of  (and affected me independently before reading that note).

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 5a3f97291eea96037cceee097ebc00bba44bc9ed)

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Doc/library/dataclasses.rst

index 6a9863cf56a6d32313c988adbc270073edad8c8d..1fe5bda3b9415dfc9d73a12c537c7b118973cb5b 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