diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2018-05-16 02:44:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 02:44:27 (GMT) |
commit | 2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9 (patch) | |
tree | 72139540fcd8f6824c8265cb7ed4515b3d3a0c37 /Misc | |
parent | d8dcd57edb88ce57063e5c2b85fe0ee1abb1ce8b (diff) | |
download | cpython-2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9.zip cpython-2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9.tar.gz cpython-2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9.tar.bz2 |
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst b/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst new file mode 100644 index 0000000..6595b12 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst @@ -0,0 +1,4 @@ +Fix dataclasses to work if using literal string type annotations or if using +PEP 563 "Postponed Evaluation of Annotations". Only specific string +prefixes are detected for both ClassVar ("ClassVar" and "typing.ClassVar") +and InitVar ("InitVar" and "dataclasses.InitVar"). |