From 33cb528b1d725e1e0c188b54d02cd30ad4f4d204 Mon Sep 17 00:00:00 2001 From: kolo Date: Wed, 21 May 2025 13:32:45 +0300 Subject: [PATCH] some fix --- src/argenta/command/flag/models.py | 2 +- src/argenta/router/entity.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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