File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1281,7 +1281,7 @@ class C:
1281
1281
If given, 'dict_factory' will be used instead of built-in dict.
1282
1282
The function applies recursively to field values that are
1283
1283
dataclass instances. This will also look into built-in containers:
1284
- tuples, lists, and dicts.
1284
+ tuples, lists, and dicts. Other objects are copied with 'copy.deepcopy()'.
1285
1285
"""
1286
1286
if not _is_dataclass_instance (obj ):
1287
1287
raise TypeError ("asdict() should be called on dataclass instances" )
@@ -1353,7 +1353,7 @@ class C:
1353
1353
If given, 'tuple_factory' will be used instead of built-in tuple.
1354
1354
The function applies recursively to field values that are
1355
1355
dataclass instances. This will also look into built-in containers:
1356
- tuples, lists, and dicts.
1356
+ tuples, lists, and dicts. Other objects are copied with 'copy.deepcopy()'.
1357
1357
"""
1358
1358
1359
1359
if not _is_dataclass_instance (obj ):
You can’t perform that action at this time.
0 commit comments