]> granicus.if.org Git - python/commit
bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but...
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Thu, 22 Mar 2018 20:28:48 +0000 (16:28 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 20:28:48 +0000 (16:28 -0400)
commit56970b8ce9d23269d20a76f13c80e670c856ba7f
tree53012d578fa3d64d9919453bb817e89a94227198
parentf757b72b2524ce3451d2269f0b8a9f0593a7b27f
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.
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-03-22-16-05-56.bpo-32505.YK1N8v.rst [new file with mode: 0644]