from typing import Dict class Message: version: str status: int msg: str headers: Dict[str, str] body: bytes def __init__(self, version: str, status: int, msg: str, headers: Dict[str, str], body: bytes = None): self.version = version self.status = status self.msg = msg self.headers = headers self.body = body