diff --git a/fastapi_cache/types.py b/fastapi_cache/types.py index a05a37e..c409dfb 100644 --- a/fastapi_cache/types.py +++ b/fastapi_cache/types.py @@ -15,7 +15,7 @@ class KeyBuilder(Protocol): *, request: Optional[Request] = ..., response: Optional[Response] = ..., - args: Optional[tuple[Any, ...]] = ..., - kwargs: Optional[dict[str, Any]] = ..., + args: tuple[Any, ...] = ..., + kwargs: dict[str, Any] = ..., ) -> Union[Awaitable[str], str]: ...