What does the @dataclass decorator generate automatically in Python?
Correct answer
C. __init__, __repr__ and __eq__ methods
5 views
C. __init__, __repr__ and __eq__ methods
5 views
dataclasses reduce boilerplate by generating common special methods.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is C? Ask here and get an explanation.