From 1af243bffa8039279004fb8d2778ec5d34876937 Mon Sep 17 00:00:00 2001 From: Mithun Gowda B Date: Wed, 16 Jul 2025 11:11:13 +0530 Subject: [PATCH] Update ui.py Signed-off-by: Mithun Gowda B --- setup/utils/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/utils/ui.py b/setup/utils/ui.py index 65545c3..7356cba 100644 --- a/setup/utils/ui.py +++ b/setup/utils/ui.py @@ -6,7 +6,7 @@ Cross-platform console UI with colors and progress indication import sys import time import shutil -from typing import List, Optional, Any, Dict +from typing import List, Optional, Any, Dict, Union from enum import Enum # Try to import colorama for cross-platform color support @@ -167,7 +167,7 @@ class Menu: self.multi_select = multi_select self.selected = set() if multi_select else None - def display(self) -> int | List[int]: + def display(self) -> Union[int, List[int]]: """ Display menu and get user selection @@ -431,4 +431,4 @@ def truncate_text(text: str, max_length: int, suffix: str = "...") -> str: if len(text) <= max_length: return text - return text[:max_length - len(suffix)] + suffix \ No newline at end of file + return text[:max_length - len(suffix)] + suffix