Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Module contents
The ``@dataclass`` decorator will add various "dunder" methods to
the class, described below. If any of the added methods already
exist in the class, the behavior depends on the parameter, as documented
below. The decorator returns the same class that it is called on; no new
class is created.
below. Except when ``slots=True``, the decorator returns the same class
that it is called on without creating a new class.

If ``@dataclass`` is used just as a simple decorator with no parameters,
it acts as if it has the default values documented in this
Expand Down
Loading