dashboard: support Python 3.9 import

This commit is contained in:
Harwinder Sekhon
2026-08-18 18:08:38 -04:00
parent 0dbd94c03c
commit ac575b4ddc
+2 -1
View File
@@ -13,6 +13,7 @@ import json
import logging import logging
import sys import sys
from datetime import datetime, timezone from datetime import datetime, timezone
from typing import Optional
# Force UTF-8 output on Windows so box-drawing chars render # Force UTF-8 output on Windows so box-drawing chars render
if hasattr(sys.stdout, "reconfigure"): if hasattr(sys.stdout, "reconfigure"):
@@ -198,7 +199,7 @@ def print_signal_report(report: SignalReport, detail: bool = False):
print(f" {label:>20} {color}{val:.3f}{Colors.RESET}") print(f" {label:>20} {color}{val:.3f}{Colors.RESET}")
def print_market_outlook(outlook: OutlookResult | None) -> None: def print_market_outlook(outlook: Optional[OutlookResult]) -> None:
"""Render the independent advisory outlook for explicit CLI use.""" """Render the independent advisory outlook for explicit CLI use."""
print(f"\n {Colors.BOLD}AI Market Outlook{Colors.RESET}") print(f"\n {Colors.BOLD}AI Market Outlook{Colors.RESET}")
if outlook is None: if outlook is None: