support older versions of python not having the Union import

This commit is contained in:
ChuckBuilds
2025-08-15 09:38:23 -05:00
parent f13e9306c9
commit e3b65588a2
3 changed files with 6 additions and 4 deletions

View File

@@ -627,11 +627,11 @@ class DisplayController:
if self.ncaam_basketball_recent: self.ncaam_basketball_recent.update()
if self.ncaam_basketball_upcoming: self.ncaam_basketball_upcoming.update()
def _check_live_games(self) -> tuple[bool, str]:
def _check_live_games(self) -> tuple:
"""
Check if there are any live games available.
Returns:
tuple[bool, str]: (has_live_games, sport_type)
tuple: (has_live_games, sport_type)
sport_type will be 'nhl', 'nba', 'mlb', 'milb', 'soccer' or None
"""
# Only include sports that are enabled in config