from typing import NamedTuple class Message(NamedTuple): topic: str content: str