1 Commits

Author SHA1 Message Date
Michael Simard
ff0ca17b15 Fix Python 3.9 compatibility issues
Resolved startup errors:

1. Type hint compatibility:
   - Changed SkaterStatsDTO | GoalieStatsDTO to Union[SkaterStatsDTO, GoalieStatsDTO]
   - Python 3.9 does not support | operator for type unions

2. Yahoo Fantasy adapter import:
   - Made yfpy import lazy in get_fantasy_repository()
   - Prevents ModuleNotFoundError when yfpy not installed
   - Only loads Yahoo adapter when actually needed

3. Updated startup script for compatibility

The application now starts successfully on Python 3.9.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 22:49:48 -06:00