you just write ``@dataclass`` and the attributes & their types in the annotations, other than that its a normal class, you can define methods and stuff
```py @dataclass class Point: x: float y: float # compared to: class Point: x: float y: float def __init__(self, x: float, y: float) -> None: self.x = x self.y = y def __repr__(self) -> str: return f"Point(x={self.x}, y={self.y},)" ```