Skip to content

Commit 80cc3e8

Browse files
committed
PR feedback on documentation.
- Added `versionadded:: next` for `qualname` parameter - Fixed formatting.
1 parent 0324106 commit 80cc3e8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/dataclasses.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ Module contents
435435
By default, it is set to the module name of the caller.
436436

437437
If *qualname* is defined, the :attr:`!__qualname__` attribute of the dataclass
438-
is set to that value.
439-
By default, it is set to the value passed to *cls_name*.
438+
is set to that value. By default, it is set to the value passed to *cls_name*.
440439

441440
The *decorator* parameter is a callable that will be used to create the dataclass.
442441
It should take the class object as a first argument and the same keyword arguments
@@ -468,6 +467,8 @@ Module contents
468467

469468
.. versionadded:: 3.14
470469
Added the *decorator* parameter.
470+
.. versionadded:: next
471+
Added the *qualname* parameter.
471472

472473
.. function:: replace(obj, /, **changes)
473474

0 commit comments

Comments
 (0)