summaryrefslogtreecommitdiff
path: root/modules/task_types.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/task_types.py')
-rw-r--r--modules/task_types.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/task_types.py b/modules/task_types.py
deleted file mode 100644
index d23ce55..0000000
--- a/modules/task_types.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from typing import Annotated
-from pydantic.functional_validators import AfterValidator
-
-IDLE = 'IDLE'
-MINING = 'MINING'
-
-MIA = 'MIA'
-ERROR = 'ERROR'
-
-task_types = [
- IDLE,
- MINING,
-]
-
-
-def is_task_type(task: str):
- assert task in task_types, f"'{task}' is not a valid task type."
- return task
-
-
-task_type = Annotated[str, AfterValidator(is_task_type)]