Files
romm/backend/endpoints/responses/tasks.py
Georges-Antoine Assi 19c5b5e428 refactor tasks endpoint
2025-08-02 10:11:00 -04:00

15 lines
272 B
Python

from typing import Dict, List, TypedDict
class TaskInfo(TypedDict):
name: str
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]]