lijok added the comment:
> I think this is a combination of the above statement at end of [0] and
> inheritance following the order of the fields at [1]
Ah, I see, so if I understand correctly the init method for the example given
would become __init__(self, PARAM: int = 1, ARG: int)
New submission from lijok :
from dataclasses import dataclass
@dataclass
class A:
PARAM: int
@dataclass
class B(A):
ARG: int
PARAM: int = 1
Traceback (most recent call last):
File "", line 2, in
File
"C:\Users\user\AppData\Local\Programs\Python\Python38\lib