datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

feature: adding parameter to @dataclass()

Open puttemanss opened this issue 8 months ago • 0 comments

Is your feature request related to a problem? Please describe. No real problem

Describe the solution you'd like be able to parameter to dtaclass for example @dataclass(slots=True)

Describe alternatives you've considered Nothing

Additional context https://docs.python.org/3/library/dataclasses.html @dataclasses.dataclass(*, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)

puttemanss avatar Mar 24 '25 14:03 puttemanss