File size: 384 Bytes
cb92d2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from typing import Dict, Union
from uuid import UUID
from asyncio import Queue
from PIL import Image
from typing import Tuple, Union
from uuid import UUID
from asyncio import Queue
from PIL import Image

UserId = UUID

InputParams = dict

QueueContent = Dict[str, Union[Image.Image, InputParams]]

UserQueueDict = Dict[UserId, Queue[QueueContent]]

user_queue_map: UserQueueDict = {}