Skip to content

Commit 3e6f19b

Browse files
miss-islingtonEpicWink
authored andcommitted
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 6cce942 commit 3e6f19b

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

613+
dataclasses
614+
-----------
615+
616+
* Change field default mutability check, allowing only defaults which are
617+
:term:`hashable` instead of any object which is not an instance of
618+
:class:`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in
619+
:issue:`44674`.)
620+
613621
datetime
614622
--------
615623

0 commit comments

Comments
 (0)