Refactor imports and standardize file naming: update module imports for consistency, align filenames with snake_case convention, and extract DynamicResponse to a dedicated module.

This commit is contained in:
Yûki VACHOT 2025-11-29 02:27:58 +01:00
parent 126d04ab0f
commit bf5d1b890a
22 changed files with 160 additions and 145 deletions

View file

@ -11,9 +11,9 @@ from typing import Optional
from .game_service import GameService
from .profile_service import ProfileService
from ..api.client import GeoGuessrClient
from ..models.Game import Game
from ..monitoring.schema.SchemaRegistry import schema_registry
from ..api import GeoGuessrClient
from ..models import Game
from ..monitoring import schema_registry
logger = logging.getLogger(__name__)

View file

@ -7,11 +7,8 @@ Handles game history, details, and competitive data with dynamic schema support.
import logging
from typing import Optional
from ..api.client import DynamicResponse, GeoGuessrClient
from ..api.endpoints import Endpoints
from ..models.DailyChallenge import DailyChallenge
from ..models.Game import Game
from ..models.SeasonStats import SeasonStats
from ..api import Endpoints, DynamicResponse, GeoGuessrClient
from ..models import DailyChallenge, Game, SeasonStats
logger = logging.getLogger(__name__)

View file

@ -8,11 +8,8 @@ dynamic schema adaptation.
import logging
from typing import Optional
from ..api.client import DynamicResponse, GeoGuessrClient
from ..api.endpoints import Endpoints
from ..models.Achievement import Achievement
from ..models.UserProfile import UserProfile
from ..models.UserStats import UserStats
from ..api import DynamicResponse, GeoGuessrClient, Endpoints
from ..models import Achievement, UserProfile, UserStats
logger = logging.getLogger(__name__)