my_types.py 215 B

12345678
  1. from typing import Tuple, Dict, List
  2. MessageType = str
  3. Message = Dict
  4. UserId = int
  5. DbName = str
  6. UserIdentification = Tuple[DbName, UserId]
  7. MessageQueue = List[Tuple[List[UserIdentification], Message, MessageType]]