Skip to content

Commit

Permalink
Add dataclass field default change to 3.11 what's new (pythonGH-96790)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
EpicWink authored and miss-islington committed Sep 13, 2022
1 parent cc8b006 commit dc6d970
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,14 @@ Added non parallel-safe :func:`~contextlib.chdir` context manager to change
the current working directory and then restore it on exit. Simple wrapper
around :func:`~os.chdir`. (Contributed by Filipe Laíns in :issue:`25625`)

dataclasses
-----------

* Change field default mutability check, allowing only defaults which are
:term:`hashable` instead of any object which is not an instance of
:class:`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in
:issue:`44674`.)

datetime
--------

Expand Down

0 comments on commit dc6d970

Please sign in to comment.