blob: f5e0ae5eec86c4f89e84b16cf6926d1d29d3b5e8 (
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
modified_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
|