From 036ddde06ded53ef4f0f90aba7ec8736baa4c617 Mon Sep 17 00:00:00 2001 From: Harwinder Sekhon Date: Tue, 18 Aug 2026 18:08:38 -0400 Subject: [PATCH] dashboard: support Python 3.9 import --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8f07287..603f3ba 100755 --- a/main.py +++ b/main.py @@ -13,6 +13,7 @@ import json import logging import sys from datetime import datetime, timezone +from typing import Optional # Force UTF-8 output on Windows so box-drawing chars render 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}") -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.""" print(f"\n {Colors.BOLD}AI Market Outlook{Colors.RESET}") if outlook is None: