Prevent @dataclass
from being called twice on the same class
#92231
Labels
3.11
bug and security fixes
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Currently it's possible to do this:
This is confusing at best, and will produce unexpected classes at worst.
With this change, that will become an error.
The text was updated successfully, but these errors were encountered: