From: Adam Sawicki Date: Mon, 22 Apr 2019 13:51:01 +0000 (-0400) Subject: Allow RequestHandler.get to accept **kwargs. X-Git-Tag: v6.1.0b1~79^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e2f8df5ff3498ac70df819bf3c794ed42caadb6;p=thirdparty%2Ftornado.git Allow RequestHandler.get to accept **kwargs. --- 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(