This commit is contained in:
2026-01-24 00:04:28 +03:00
parent 2ad86dbedd
commit 1c54f11f31
9 changed files with 136 additions and 29 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class BaseApp:
self._prompt: str | HTML = prompt
self._print_func: Printer = print_func
self._exit_command: Command = exit_command
self._dividing_line: StaticDividingLine | DynamicDividingLine = dividing_line
self._dividing_line: StaticDividingLine | DynamicDividingLine | None = dividing_line
self._repeat_command_groups_printing: bool = repeat_command_groups_printing
self._override_system_messages: bool = override_system_messages
self._autocompleter: AutoCompleter = autocompleter
+2 -2
View File
@@ -2,7 +2,7 @@ __all__ = ["PossibleValues", "ValidationStatus", "Flag", "InputFlag", "InputFlag
from enum import Enum
from re import Pattern
from typing import Literal, override, TypeVar, Generic, Iterator, Any
from typing import Literal, override, TypeVar, Generic, Iterator, Any, Container
PREFIX_TYPE = Literal["-", "--", "---"]
@@ -24,7 +24,7 @@ class Flag:
name: str,
*,
prefix: PREFIX_TYPE = "--",
possible_values: list[str] | Pattern[str] | PossibleValues = PossibleValues.ALL,
possible_values: Container[str] | Pattern[str] | PossibleValues = PossibleValues.ALL,
) -> None:
"""
Public. The entity of the flag being registered for subsequent processing