from typing import Tuple, Dict, List MessageType = str Message = Dict UserId = int DbName = str UserIdentification = Tuple[DbName, UserId] MessageQueue = List[Tuple[List[UserIdentification], Message, MessageType]]