Open
Description
I'm comparing this package to the standard dataclasses.
In this case, the __init__
method will only accepts the wheels
argument:
from dataclasses import dataclass, field
@dataclass(eq=False)
class Vehicle:
wheels: int
_wheels: int = field(init=False, repr=False)
However, the equivalent with dataclassy
:
from dataclassy import dataclass
@dataclass(eq=False)
class Vehicle:
wheels: int
_wheels: int = None
will accept both wheels
and _wheels
as arguments. Is this intended?