Files
romm/backend/endpoints/responses/tasks.py
Georges-Antoine Assi 6785be06a9 cleanup code massively
2025-10-15 16:21:17 -04:00

18 lines
325 B
Python

from typing import Dict, List, TypedDict
from tasks.tasks import TaskType
class TaskInfo(TypedDict):
name: str
type: TaskType
manual_run: bool
title: str
description: str
enabled: bool
cron_string: str
# Use a more flexible type for grouped tasks
GroupedTasksDict = Dict[str, List[TaskInfo]]