From da105eb3dd66935401c7740a132b3d18d77294ec Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Mon, 2 Oct 2023 01:10:42 +0200 Subject: Add pydantic to dataclasses 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 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 077a683..8b25550 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,6 +11,7 @@ pybooru = "^4.2.2" alive-progress = "^3.1.4" colorama = "^0.4.6" python-dotenv = "^1.0.0" +pydantic = "^2.4.2" [tool.poetry.group.dev.dependencies] pytype = "^2023.9.27" -- cgit v1.2.3