bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_factory (GH-6170)

Fix the way that new annotations in a class are detected.
This commit is contained in:
Eric V. Smith 2018-03-20 22:00:23 -04:00 committed by GitHub
parent 10b134a07c
commit 8f6eccdc64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 10 deletions

View file

@ -0,0 +1,2 @@
Fix an error where subclassing a dataclass with a field that uses a
default_factory would generate an incorrect class.