blob: f20cbc93f121e7fae1ed771a602b9d7249ff7c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from typing import NamedTuple, List
from todo.model.difficulty import Difficulty
from todo.model.priority import Priority
class Task(NamedTuple):
id: int
created_at: int
updated_at: int
name: str
duration: int
difficulty: Difficulty
priority: Priority
description: str
class ValidTaskForm(NamedTuple):
name: str
duration: int
difficulty: Difficulty
priority: Priority
tags: List[int]
description: str
|