[Python-checkins] gh-103027: Update `dataclass.make_dataclass` docstring (gh-103028)
ericvsmith
webhook-mailer at python.org
Sat Mar 25 15:36:44 EDT 2023
https://github.com/python/cpython/commit/8ec6486462b920ab92ecb685a79fc3446681e1b8
commit: 8ec6486462b920ab92ecb685a79fc3446681e1b8
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2023-03-25T15:36:38-04:00
summary:
gh-103027: Update `dataclass.make_dataclass` docstring (gh-103028)
* gh-103027: Update `dataclass.make_dataclass` docstring
files:
M Lib/dataclasses.py
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index e3fd0b3e380d..0e04469be3ca 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -1421,8 +1421,11 @@ class C(Base):
For the bases and namespace parameters, see the builtin type() function.
- The parameters init, repr, eq, order, unsafe_hash, and frozen are passed to
- dataclass().
+ The parameters init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only,
+ slots, and weakref_slot are passed to dataclass().
+
+ If module parameter is defined, the '__module__' attribute of the dataclass is
+ set to that value.
"""
if namespace is None:
More information about the Python-checkins
mailing list