Merge pull request #124 from mjpieters/type_refinement

key_builder type; args and kwargs are always given
This commit is contained in:
long2ice
2023-05-09 18:16:37 +08:00
committed by GitHub

View File

@@ -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]:
...