Skip to content

Commit 97cec2d

Browse files
committed
review comments
1 parent 719c0f3 commit 97cec2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/dataclasses.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,8 @@ class C:
14901490
If given, 'dict_factory' will be used instead of built-in dict.
14911491
The function applies recursively to field values that are
14921492
dataclass instances. This will also look into built-in containers:
1493-
tuples, lists, and dicts. Other objects are copied with 'copy.deepcopy()'.
1493+
tuples, lists, dicts, and frozendicts. Other objects are copied
1494+
with 'copy.deepcopy()'.
14941495
"""
14951496
if not _is_dataclass_instance(obj):
14961497
raise TypeError("asdict() should be called on dataclass instances")
@@ -1581,7 +1582,8 @@ class C:
15811582
If given, 'tuple_factory' will be used instead of built-in tuple.
15821583
The function applies recursively to field values that are
15831584
dataclass instances. This will also look into built-in containers:
1584-
tuples, lists, and dicts. Other objects are copied with 'copy.deepcopy()'.
1585+
tuples, lists, dicts, and frozendicts. Other objects are copied
1586+
with 'copy.deepcopy()'.
15851587
"""
15861588

15871589
if not _is_dataclass_instance(obj):

0 commit comments

Comments
 (0)