This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: make_dataclass is missing the documented kw_only argument
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.smith Nosy List: eric.smith, kintisheff, miss-islington
Priority: normal Keywords: patch

Created on 2021-11-13 19:57 by kintisheff, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29679 merged eric.smith, 2021-11-20 22:18
PR 29680 merged miss-islington, 2021-11-20 23:29
Messages (3)
msg406290 - (view) Author: Tsvetan Kintisheff (kintisheff) Date: 2021-11-13 19:57
According to the 3.10 documentation, make_dataclass includes the kw_only argument: https://github.com/python/cpython/blob/3f15792d60011639d9b170d8a76c6db7f6e83665/Lib/dataclasses.py#L1327

However, the source code referred to by the same doc does not appear to include the kw_only argument:
https://github.com/python/cpython/blob/3f15792d60011639d9b170d8a76c6db7f6e83665/Lib/dataclasses.py#L1327
msg406291 - (view) Author: Tsvetan Kintisheff (kintisheff) Date: 2021-11-13 19:58
to clarify, the documentation permalink is: https://docs.python.org/3/library/dataclasses.html#dataclasses.make_dataclass
msg406694 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2021-11-20 23:28
Thanks for the bug report!
History
Date User Action Args
2022-04-11 14:59:52adminsetgithub: 89961
2021-11-20 23:29:19miss-islingtonsetnosy: + miss-islington

pull_requests: + pull_request27921
2021-11-20 23:28:28eric.smithsetstatus: open -> closed
resolution: fixed
messages: + msg406694

stage: patch review -> resolved
2021-11-20 22:19:11eric.smithsettype: behavior
2021-11-20 22:18:18eric.smithsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27920
2021-11-13 20:17:00eric.smithsetassignee: eric.smith

nosy: + eric.smith
components: + Library (Lib), - ctypes
versions: + Python 3.11
2021-11-13 19:58:46kintisheffsetmessages: + msg406291
2021-11-13 19:57:16kintisheffcreate