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
- Run any game that uses high scores
- Verify scores are saved and retrieved correctly
- New functions can be imported:
from utils.db_manager import get_all_scores, clear_scores
GSSoC 2026
Summary
Added comprehensive type hints to
utils/db_manager.pyand added two new utility functions.Changes
get_all_scores()to retrieve all scores for a gameclear_scores()to clear scores for a game (useful for testing)from typing import List, TupleimportHow to Test
from utils.db_manager import get_all_scores, clear_scoresGSSoC 2026