From 7e2f8df5ff3498ac70df819bf3c794ed42caadb6 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 22 Apr 2019 09:51:01 -0400 Subject: [PATCH] Allow RequestHandler.get to accept **kwargs. --- tornado/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/web.py b/tornado/web.py index 6e6e9551a..9a7710d6a 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -2474,8 +2474,8 @@ class RedirectHandler(RequestHandler): self._url = url self._permanent = permanent - def get(self, *args: Any) -> None: - to_url = self._url.format(*args) + def get(self, *args: Any, **kwargs: Any) -> None: + to_url = self._url.format(*args, **kwargs) if self.request.query_arguments: # TODO: figure out typing for the next line. to_url = httputil.url_concat( -- 2.47.2