Add dataclass field default change to 3.11 what's new (#96790)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Laurie O 2022-09-14 01:56:08 +10:00 committed by GitHub
parent bf5fd49252
commit 4995f5f9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -523,6 +523,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
--------