from dataclasses import dataclass @dataclass class User: id: int name: str email: str def __init__(self, id: int, name: str, email: str): self.id = id self.name = name self.email = email