diff --git a/src/argenta/command/flag/models.py b/src/argenta/command/flag/models.py index 4e0f79d..7e1546f 100644 --- a/src/argenta/command/flag/models.py +++ b/src/argenta/command/flag/models.py @@ -43,7 +43,7 @@ class Flag(BaseFlag): self, name: str, prefix: Literal["-", "--", "---"] = "--", - possible_values: list[str] | Pattern[str] | False = True, + possible_values: list[str] | Pattern[str] | bool = True, ) -> None: """ Public. The entity of the flag being registered for subsequent processing diff --git a/src/argenta/router/entity.py b/src/argenta/router/entity.py index d4b6bf3..54d8596 100644 --- a/src/argenta/router/entity.py +++ b/src/argenta/router/entity.py @@ -158,7 +158,7 @@ class Router: ) @staticmethod - def _validate_command(command: Command | str) -> None: + def _validate_command(command: Command) -> None: """ Private. Validates the command registered in handler :param command: validated command