from __future__ import annotations from abc import ABC, abstractmethod class IdentityAdapter(ABC): @abstractmethod def login(self, username: str, password: str) -> tuple[str, dict] | None: raise NotImplementedError