mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
10b134a07c
commit
8f6eccdc64
3 changed files with 62 additions and 10 deletions
|
@ -0,0 +1,2 @@
|
|||
Fix an error where subclassing a dataclass with a field that uses a
|
||||
default_factory would generate an incorrect class.
|
Loading…
Add table
Add a link
Reference in a new issue