mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
Update ui.py
Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
This commit is contained in:
@@ -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
|
||||
return text[:max_length - len(suffix)] + suffix
|
||||
|
||||
Reference in New Issue
Block a user