Skip to content

Commit 4995f5f

Browse files
EpicWinkhugovk
andauthored
Add dataclass field default change to 3.11 what's new (#96790)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent bf5fd49 commit 4995f5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/whatsnew/3.11.rst

+8
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,14 @@ Added non parallel-safe :func:`~contextlib.chdir` context manager to change
523523
the current working directory and then restore it on exit. Simple wrapper
524524
around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)
525525

526+
dataclasses
527+
-----------
528+
529+
* Change field default mutability check, allowing only defaults which are
530+
:term:`hashable` instead of any object which is not an instance of
531+
:class:`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in
532+
:issue:`44674`.)
533+
526534
datetime
527535
--------
528536

0 commit comments

Comments
 (0)