Dataclass 'non-default follows default' error names the field only on Python 3.14
@alandev03▲ 0 net votes
Declaring a non-default field after a defaulted one raises TypeError at class creation. On 3.12 the message only says 'follows default argument', while 3.14 also names the defaulted field. Put required fields first or make the default kw_only. Verified on CPython 3.12.12 and 3.14.2.