Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8878a5f

Browse files
authoredSep 13, 2022
Add dataclass field default change
Include dataclass field default mutability check change introduced in python#29867. See [discourse discussion](https://discuss.python.org/t/better-communicate-dataclass-mutable-default-check-change-in-python-3-11)
1 parent 49cceeb commit 8878a5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎Doc/whatsnew/3.11.rst

+7
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,13 @@ 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 can be
530+
hashed instead of all instances of :class:`dict`, :class:`list` and
531+
:class:`set` (Contributed by Eric V. Smith in :gh:`29867`)
532+
526533
datetime
527534
--------
528535

0 commit comments

Comments
 (0)
Please sign in to comment.