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