mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Merge pull request #124 from mjpieters/type_refinement
key_builder type; args and kwargs are always given
This commit is contained in:
@@ -15,7 +15,7 @@ class KeyBuilder(Protocol):
|
|||||||
*,
|
*,
|
||||||
request: Optional[Request] = ...,
|
request: Optional[Request] = ...,
|
||||||
response: Optional[Response] = ...,
|
response: Optional[Response] = ...,
|
||||||
args: Optional[tuple[Any, ...]] = ...,
|
args: tuple[Any, ...] = ...,
|
||||||
kwargs: Optional[dict[str, Any]] = ...,
|
kwargs: dict[str, Any] = ...,
|
||||||
) -> Union[Awaitable[str], str]:
|
) -> Union[Awaitable[str], str]:
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user