]> granicus.if.org Git - python/commit
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 May 2018 04:22:13 +0000 (21:22 -0700)
committerGitHub <noreply@github.com>
Wed, 16 May 2018 04:22:13 +0000 (21:22 -0700)
commitc73268aad7645a146b3e0e088c198a1fb74d57ff
tree8e367e5f5c644667695ff7f5c0d4930a7abd5b83
parent3d484435d261ef6e3204902f50778b545428dd7e
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)

(cherry picked from commit 2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Lib/dataclasses.py
Lib/test/dataclass_module_1.py [new file with mode: 0644]
Lib/test/dataclass_module_1_str.py [new file with mode: 0644]
Lib/test/dataclass_module_2.py [new file with mode: 0644]
Lib/test/dataclass_module_2_str.py [new file with mode: 0644]
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst [new file with mode: 0644]