add new init command for generate boilerplate in flat or src layout

This commit is contained in:
2026-02-09 14:50:03 +03:00
parent 1211518c40
commit 18a8376469
4 changed files with 114 additions and 7 deletions
+2 -4
View File
@@ -7,7 +7,7 @@ __all__ = [
"HandlerFunc",
]
from typing import Any, Protocol, TypeVar
from typing import Any, Protocol, TypeVar, Callable
from argenta.response import Response
@@ -39,6 +39,4 @@ class DescriptionMessageGenerator(Protocol):
raise NotImplementedError
class HandlerFunc(Protocol):
def __call__(self, response: Response, /, *args: Any, **kwargs: Any) -> None:
raise NotImplementedError
type HandlerFunc = Callable[..., Any]