diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2018-03-22 20:28:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 20:28:48 (GMT) |
commit | 56970b8ce9d23269d20a76f13c80e670c856ba7f (patch) | |
tree | 53012d578fa3d64d9919453bb817e89a94227198 /Misc/NEWS.d | |
parent | f757b72b2524ce3451d2269f0b8a9f0593a7b27f (diff) | |
download | cpython-56970b8ce9d23269d20a76f13c80e670c856ba7f.zip cpython-56970b8ce9d23269d20a76f13c80e670c856ba7f.tar.gz cpython-56970b8ce9d23269d20a76f13c80e670c856ba7f.tar.bz2 |
bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192)
If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-03-22-16-05-56.bpo-32505.YK1N8v.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-03-22-16-05-56.bpo-32505.YK1N8v.rst b/Misc/NEWS.d/next/Library/2018-03-22-16-05-56.bpo-32505.YK1N8v.rst new file mode 100644 index 0000000..91e97bf --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-03-22-16-05-56.bpo-32505.YK1N8v.rst @@ -0,0 +1,2 @@ +Raise TypeError if a member variable of a dataclass is of type Field, but +doesn't have a type annotation. |