diff --git a/tornado/web.py b/tornado/web.py index 30cef30bd6..1d82334729 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -617,6 +617,14 @@ def cookies(self) -> Dict[str, http.cookies.Morsel]: `self.request.cookies <.httputil.HTTPServerRequest.cookies>`.""" return self.request.cookies + @overload + def get_cookie(self, name: str, default: str) -> str: + pass + + @overload + def get_cookie(self, name: str, default: None = None) -> Optional[str]: + pass + def get_cookie(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns the value of the request cookie with the given name.