StarRailCopilot/tasks/assignment/keywords/classes.py

21 lines
450 B
Python
Raw Normal View History

2023-06-19 00:39:41 +00:00
from __future__ import annotations
from dataclasses import dataclass
from typing import ClassVar
from module.ocr.keyword import Keyword
2023-06-19 17:00:34 +00:00
@dataclass(repr=False)
2023-06-19 00:39:41 +00:00
class AssignmentGroup(Keyword):
instances: ClassVar = {}
entries: tuple[AssignmentEntry] = ()
2023-06-19 17:00:34 +00:00
@dataclass(repr=False)
2023-06-19 00:39:41 +00:00
class AssignmentEntry(Keyword):
instances: ClassVar = {}
group: AssignmentGroup = None
def __hash__(self) -> int:
return super().__hash__()