Skip to content

Commit a24af92

Browse files
committed
Add comment about what to do when backward compatibility is not needed.
1 parent e5c817b commit a24af92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

distutils/_dataclass.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ 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 are no longer needed,
25+
the whole customization can be removed.
26+
A regular ``dataclass`` could be used instead.
2327
"""
2428

2529
@wraps(dataclass)

0 commit comments

Comments
 (0)