from typing import Dict class AuthStrategy: AUTH_HEADER = "Authorization" def build_authorization_header(self, token: str) -> str: return "Bearer " + token async def authorize(self, headers: Dict[str, str]) -> Dict[str, str]: ... class DefaultAuthStrategy(AuthStrategy): async def authorize(self, headers: Dict[str, str]) -> Dict[str, str]: return headers