mirror of https://github.com/zulip/zulip.git
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 <anders@zulip.com>
This commit is contained in:
parent
4db6c51fb1
commit
8dd72497a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue