From: Henry Schreiner Date: Wed, 9 Feb 2022 20:56:10 +0000 (-0500) Subject: bpo-43532: add version added to KW_ONLY (GH-31235) X-Git-Tag: v3.11.0a6~256 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a3f97291eea96037cceee097ebc00bba44bc9ed;p=thirdparty%2FPython%2Fcpython.git bpo-43532: add version added to KW_ONLY (GH-31235) Minor missing version note mentioned at the end of (and affected me independently before reading that note). Automerge-Triggered-By: GH:ericvsmith --- diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 0bac594f0561..0f6985f0ba8c 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -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