from abc import ABC, abstractmethod from typing import Generic, TypeVar, Sequence T = TypeVar("T") # Todo: check for ABCMetaclass [docs] class Repository(ABC, Generic[T]): [docs] @abstractmethod def load(self) -> Sequence[T]: pass