]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Mar 2018 17:55:13 +0000 (10:55 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Mar 2018 17:55:13 +0000 (10:55 -0700)
commitc6147acd2ce5fa9e344f179b539f3b21b9ae1a6d
treea325c46ab5210ac895b5860ea8ba54eeed60e825
parent00765bb6ae692570c73fe15e0362ce9c8ec59c82
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.
(cherry picked from commit de7a2f04d6b9427d568fcb43b6f512f9b4c4bd84)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
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]