@@ -418,7 +418,7 @@ Module contents
418418 :func: `!astuple ` raises :exc: `TypeError ` if *obj * is not a dataclass
419419 instance.
420420
421- .. function :: make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False, module=None, decorator=dataclass)
421+ .. function :: make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False, module=None, qualname=None, decorator=dataclass)
422422
423423 Creates a new dataclass with name *cls_name *, fields as defined
424424 in *fields *, base classes as given in *bases *, and initialized
@@ -434,6 +434,9 @@ Module contents
434434 of the dataclass is set to that value.
435435 By default, it is set to the module name of the caller.
436436
437+ If *qualname * is defined, the :attr: `~type.__qualname__ ` attribute of the dataclass
438+ is set to that value. By default, it is set to the value passed to *cls_name *.
439+
437440 The *decorator * parameter is a callable that will be used to create the dataclass.
438441 It should take the class object as a first argument and the same keyword arguments
439442 as :deco: `dataclass `. By default, the :deco: `dataclass `
@@ -464,6 +467,8 @@ Module contents
464467
465468 .. versionadded :: 3.14
466469 Added the *decorator * parameter.
470+ .. versionadded :: next
471+ Added the *qualname * parameter.
467472
468473.. function :: replace(obj, /, **changes)
469474
0 commit comments