from abc import ABC, abstractmethod from typing import Generic, TypeVar T = TypeVar("T") class MailIntakeAuthProvider(ABC, Generic[T]): @abstractmethod def get_credentials(self) -> T: ...