We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0598f4a commit a2e8a05Copy full SHA for a2e8a05
Doc/library/dataclasses.rst
@@ -254,6 +254,11 @@ Module contents
254
used because ``None`` is a valid value for some parameters with
255
a distinct meaning. No code should directly use the :const:`MISSING` value.
256
257
+ :deco:`dataclass` is free to possibly mutate the provided field
258
+ objects. As such, do not use the same object for multiple fields
259
+ even if they share the same properties. If so, the updated class is
260
+ not ensured to be well-functioning.
261
+
262
The parameters to :func:`!field` are:
263
264
- *default*: If provided, this will be the default value for this
0 commit comments