from typing import Any, NamedTuple class APIResponse(NamedTuple): payload: Any status: int