from typing import TypeVar, Generic from external_api.playlists.schemas import PlaylistsQuery, PlaylistResults T = TypeVar("T") class PlaylistsProvider(Generic[T]): client: T def __init__(self, client: T): self.client = client async def fetch(self, query: PlaylistsQuery) -> PlaylistResults: raise NotImplementedError