]> granicus.if.org Git - python/commit
bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument...
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Mon, 26 Mar 2018 17:29:16 +0000 (13:29 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Mar 2018 17:29:16 +0000 (13:29 -0400)
commitde7a2f04d6b9427d568fcb43b6f512f9b4c4bd84
tree522d8689db0b51a68dc8a976acae8b3d77d2aaba
parent030345c0bfc2f76684666fe5c61e766ba5debfe6
bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument. (GH-6260)

This is part of PEP 487 and the descriptor protocol.
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-03-26-12-33-13.bpo-33141.23wlxf.rst [new file with mode: 0644]