This commit is contained in:
2026-01-17 00:42:00 +03:00
parent 00cb94ffe2
commit 6aa6b0f179
12 changed files with 201 additions and 91 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
__all__ = ["NonStandardBehaviorHandler", "EmptyCommandHandler", "Printer", "DescriptionMessageGenerator", "HandlerFunc"]
from typing import ParamSpec, Protocol, TypeVar
from typing import Any, ParamSpec, Protocol, TypeVar
from argenta.response import Response
T = TypeVar("T", contravariant=True)
@@ -28,5 +28,5 @@ class DescriptionMessageGenerator(Protocol):
class HandlerFunc(Protocol):
def __call__(self, response: Response) -> None:
def __call__(self, response: Response, /, *args: Any, **kwargs: Any) -> None:
raise NotImplementedError