- def _wrap(method: str, not_found_msg: str
- ) -> Callable[..., Callable[..., None]]:
- def decorator(http_method_handler: Callable[..., str]
- ) -> Callable[..., None]:
+ def _request_wrapper(http_method: str, not_found_msg: str
+ ) -> Callable[..., Callable[[TaskHandler], None]]:
+ def decorator(f: Callable[..., str | None]
+ ) -> Callable[[TaskHandler], None]: