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
5 changes: 5 additions & 0 deletions Doc/library/dataclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ Module contents
used because ``None`` is a valid value for some parameters with
a distinct meaning. No code should directly use the :const:`MISSING` value.

:deco:`dataclass` is free to possibly mutate the provided field
objects. As such, do not use the same object for multiple fields
even if they share the same properties. If so, the updated class is
not ensured to be well-functioning.

The parameters to :func:`!field` are:

- *default*: If provided, this will be the default value for this
Expand Down
Loading