mirror of
https://github.com/pocketpy/pocketpy
synced 2026-06-21 07:57:10 +08:00
289 B
289 B
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.
Source code
:::code source="../../python/dataclasses.py" :::