summaryrefslogtreecommitdiffstats
path: root/src/lib/tag.py
blob: d4f11ed714519fc98de441088ec3c5c06566c0c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
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)