Question PRG-PY-0077
HardWhat does @dataclass generate for a class?
- A.
init, repr and eq (and more on request) from the annotated fields
- B.
Only init
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What does @dataclass generate for a class?
init, repr and eq (and more on request) from the annotated fields
Only init
Sign up free to see the answer and a step-by-step explanation.
Nothing
A database table