Update selector.py

This commit is contained in:
CodeName393
2026-02-26 15:25:09 +09:00
committed by GitHub
parent 1611fcc971
commit c5ef13df5d

View File

@@ -11,6 +11,7 @@ IS_WINDOWS = sys.platform == "win32"
if IS_WINDOWS: if IS_WINDOWS:
import msvcrt import msvcrt
class Selector: class Selector:
""" """
A custom interactive selector class using the Rich library. A custom interactive selector class using the Rich library.
@@ -25,7 +26,7 @@ class Selector:
page_size: int = 8, page_size: int = 8,
minimal_count: int = 0, minimal_count: int = 0,
dependencies: dict[int, list[int]] = None, dependencies: dict[int, list[int]] = None,
collapse_on_start: bool = False collapse_on_start: bool = False,
): ):
""" """
Initialize the Selector. Initialize the Selector.
@@ -398,6 +399,7 @@ class Selector:
except KeyboardInterrupt: except KeyboardInterrupt:
return [] return []
def select_multiple( def select_multiple(
options: list[str], options: list[str],
minimal_count: int = 1, minimal_count: int = 1,