From 8dd72497a7b3a24ff5f0e93d083a38494a6afcd6 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 19 Sep 2022 13:21:56 -0700 Subject: [PATCH] zilencer: Mark remote_server_dispatch request argument positional-only. In the presence of **kwargs, this is required by the Concatenate type expected by default_never_cache_responses. Signed-off-by: Anders Kaseorg --- zilencer/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zilencer/auth.py b/zilencer/auth.py index 17bc898e5c..fe8b0e3fe6 100644 --- a/zilencer/auth.py +++ b/zilencer/auth.py @@ -110,7 +110,7 @@ def authenticated_remote_server_view( @default_never_cache_responses @csrf_exempt -def remote_server_dispatch(request: HttpRequest, **kwargs: Any) -> HttpResponse: +def remote_server_dispatch(request: HttpRequest, /, **kwargs: Any) -> HttpResponse: result = get_target_view_function_or_response(request, kwargs) if isinstance(result, HttpResponse): return result