mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
21 lines
365 B
Python
21 lines
365 B
Python
from typing import TypedDict
|
|
|
|
from tasks.tasks import TaskType
|
|
|
|
|
|
class TaskInfo(TypedDict):
|
|
name: str
|
|
type: TaskType
|
|
manual_run: bool
|
|
title: str
|
|
description: str
|
|
enabled: bool
|
|
destructive: bool
|
|
cron_string: str
|
|
|
|
|
|
class GroupedTasksDict(TypedDict):
|
|
scheduled: list[TaskInfo]
|
|
manual: list[TaskInfo]
|
|
watcher: list[TaskInfo]
|