mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
key_builder type; args and kwargs are always given
These arguments are never set to None so don't need to be optional. They are always a tuple and a dict but can be empty.
This commit is contained in:
@@ -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]:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user