mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
gh-103027: Update dataclass.make_dataclass docstring (gh-103028)
* gh-103027: Update `dataclass.make_dataclass` docstring
This commit is contained in:
parent
0708437ad0
commit
8ec6486462
1 changed files with 5 additions and 2 deletions
|
|
@ -1421,8 +1421,11 @@ def make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True,
|
|||
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue