Skip to content

feat: add type hints and utility functions to db_manager.py #1645

Description

@ashrion

Summary

Added comprehensive type hints to utils/db_manager.py and added two new utility functions.

Changes

  • Added type hints to all function signatures and return types
  • Added get_all_scores() to retrieve all scores for a game
  • Added clear_scores() to clear scores for a game (useful for testing)
  • Added from typing import List, Tuple import

How to Test

  1. Run any game that uses high scores
  2. Verify scores are saved and retrieved correctly
  3. New functions can be imported: from utils.db_manager import get_all_scores, clear_scores

GSSoC 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions