Skip to content

Commit f09c33c

Browse files
Add dataclass field default change to 3.11 what's new (GH-96790)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit 4995f5f) Co-authored-by: Laurie O <laurie_opperman@hotmail.com>
1 parent 12c8a9e commit f09c33c

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
@@ -534,6 +534,14 @@ Added non parallel-safe :func:`~contextlib.chdir` context manager to change
534534
the current working directory and then restore it on exit. Simple wrapper
535535
around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)
536536

537+
dataclasses
538+
-----------
539+
540+
* Change field default mutability check, allowing only defaults which are
541+
:term:`hashable` instead of any object which is not an instance of
542+
:class:`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in
543+
:issue:`44674`.)
544+
537545
datetime
538546
--------
539547

0 commit comments

Comments
 (0)