File size: 462 Bytes
d86b25e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
"""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