canrun / src /data_sources /data_source.py
grasant's picture
Upload 24 files
d86b25e verified
raw
history blame
462 Bytes
"""Abstract base class for game requirements data sources."""
from abc import ABC, abstractmethod
from typing import Optional
from src.data_sources.game_requirements_model import GameRequirements
class DataSource(ABC):
"""Abstract base class for game requirements data sources."""
@abstractmethod
async def fetch(self, game_name: str) -> Optional[GameRequirements]:
"""Fetch game requirements from the source."""
pass