Files
romm/backend/endpoints/responses/tasks.py

15 lines
280 B
Python

from typing import Dict, List, TypedDict
class TaskInfoDict(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[TaskInfoDict]]