8000 [3.10] bpo-43532: add version added to KW_ONLY (GH-31235) by miss-islington · Pull Request #31236 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.10] bpo-43532: add version added to KW_ONLY (GH-31235) #31236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff v 8000 iew
Diff view
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 5a3f972)

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
  • Loading branch information
henryiii authored and miss-islington committed Feb 9, 2022
commit 59700ebc747a207f6b7a38277b1d92cc601c014f
2 changes: 2 additions & 0 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
0