blob: 69f980700f24e2792a6b6e18034aaebf391ec349 (
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 model.difficulty import Difficulty
from 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
|