Skip to content

Commit 19a4a73

Browse files
authored
Add comment about what to do when backward compatibility is not needed.
1 parent e5c817b commit 19a4a73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distutils/_dataclass.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def lenient_dataclass(**dc_kwargs):
2020
- But we don't want to throw away the dataclass-generated __init__
2121
specially because we don't want to have to redefine all the typing
2222
for the function arguments
23+
24+
If/when lenient behaviour and backward compatibility is not needed the whole
25+
customization can be removed, a regular ``dataclass`` can be used instead.
2326
"""
2427

2528
@wraps(dataclass)

0 commit comments

Comments
 (0)