]> granicus.if.org Git - python/commit
bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_fa...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 Mar 2018 09:17:30 +0000 (02:17 -0700)
committerEric V. Smith <ericvsmith@users.noreply.github.com>
Wed, 21 Mar 2018 09:17:30 +0000 (05:17 -0400)
commit22136c94b6e43c8c584a54f3a513b83b753b96ee
tree2754c92caa4c992a5fe0a705cb21a7f2c1065775
parent56f530ef8ae8f42bd9c2c8e9d22a13dc03fdff1d
bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_factory (GH-6170) (GH-6171)

Fix the way that new annotations in a class are detected.
(cherry picked from commit 8f6eccdc64cab735c47620fea948e64b19f83684)

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-20-20-53-21.bpo-32896.ewW3Ln.rst [new file with mode: 0644]