[Python-checkins] bpo-43532: add version added to KW_ONLY (GH-31235)

miss-islington webhook-mailer at python.org
Wed Feb 9 16:19:02 EST 2022


https://github.com/python/cpython/commit/7445949a4399ab19fbdd5a0b0aca53a690c3251b
commit: 7445949a4399ab19fbdd5a0b0aca53a690c3251b
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-02-09T13:18:52-08:00
summary:

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
(cherry picked from commit 5a3f97291eea96037cceee097ebc00bba44bc9ed)

Co-authored-by: Henry Schreiner <HenrySchreinerIII at gmail.com>

files:
M Doc/library/dataclasses.rst

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 6a9863cf56a6d..1fe5bda3b9415 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



More information about the Python-checkins mailing list