blob: f03eecbc020194c3843ddcbb45bc29fd62caaba7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from datetime import datetime
from typing import TypedDict, NamedTuple, List, Tuple
from bson.objectid import ObjectId
class SubscriptionItem(NamedTuple):
id: str
time_between_fetches: int
last_viewed: datetime
class UserDict(TypedDict):
id: ObjectId
name: str
subscriptions: List[SubscriptionItem]
|