From 45301553e15e95afe3139f8efa4885c1462d436d Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Sun, 1 Oct 2023 19:46:53 +0200 Subject: Move tag into dataclass Module 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 --- src/lib/tag.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/lib/tag.py (limited to 'src/lib/tag.py') diff --git a/src/lib/tag.py b/src/lib/tag.py deleted file mode 100644 index d4f11ed..0000000 --- a/src/lib/tag.py +++ /dev/null @@ -1,19 +0,0 @@ -""" -Tag Module for mapping Szurubooru posts to tags -""" - - -from dataclasses import dataclass, field -from typing import List - - -@dataclass -class Tag: - """Data class representing a tag""" - - name: str - version: int = -1 - description: str = "" - category: str = "General" - implications: List[str] = field(default_factory=list) - suggestions: List[str] = field(default_factory=list) -- cgit v1.2.3