summaryrefslogtreecommitdiffstats
path: root/src/lib/dataclasses.py
Commit message (Collapse)AuthorAgeFilesLines
* Add pydantic to dataclassesColin Wilk2023-10-021-3/+4
| | | | | | | | | | Verifies the type annotations on the classes. This commit also fixes a bug where an invalid type was returned for suggestions of a Tag. The return type was a dict of a Micro Tag Structure but it was expected to be a string (see szurubooru.py) Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Move tag into dataclass ModuleColin Wilk2023-10-011-0/+46
Additionally change the description of the Tag modules (and other dataclass modules) to match the description from the Szurubooru API reference. Signed-off-by: Colin Wilk <colin.wilk@tum.de>