summaryrefslogtreecommitdiff
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2018-01-27 19:07:40 -0500
committerGitHub <noreply@github.com>2018-01-27 19:07:40 -0500
commitea8fc52e75363276db23c6a8d7a689f79efce4f9 (patch)
treeca662ba631df1f6e6e32b5b0d95a6b5458d5699c /Lib/test/string_tests.py
parent2a2247ce5e1984eb2f2c41b269b38dbb795a60cf (diff)
downloadcpython-git-ea8fc52e75363276db23c6a8d7a689f79efce4f9.tar.gz
bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366)
Class authors no longer need to specify repr=False if they want to provide a custom __repr__ for dataclasses. The same thing applies for the other dunder methods that the dataclass decorator adds. If dataclass finds that a dunder methods is defined in the class, it will not overwrite it.
Diffstat (limited to 'Lib/test/string_tests.py')
0 files changed, 0 insertions, 0 deletions