Skip to content

Commit 8ec6486

Browse files
authored
gh-103027: Update dataclass.make_dataclass docstring (gh-103028)
* gh-103027: Update `dataclass.make_dataclass` docstring
1 parent 0708437 commit 8ec6486

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/dataclasses.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,8 +1421,11 @@ class C(Base):
14211421
14221422
For the bases and namespace parameters, see the builtin type() function.
14231423
1424-
The parameters init, repr, eq, order, unsafe_hash, and frozen are passed to
1425-
dataclass().
1424+
The parameters init, repr, eq, order, unsafe_hash, frozen, match_args, kw_only,
1425+
slots, and weakref_slot are passed to dataclass().
1426+
1427+
If module parameter is defined, the '__module__' attribute of the dataclass is
1428+
set to that value.
14261429
"""
14271430

14281431
if namespace is None:

0 commit comments

Comments
 (0)