---
icon: package
label: dataclasses
---

### `dataclasses.dataclass`

A decorator that is used to add special method to classes, including `__init__`, `__repr__` and `__eq__`.

### `dataclasses.asdict(obj) -> dict`

Convert a dataclass instance to a dictionary.


