Refine types on tornado.web.RequestHandler (#3970)

This diff refines the types on `RequestHandler` by porting types directly from the `tornado` repo.
This commit is contained in:
Graham Bleaney
2020-05-08 14:52:14 -04:00
committed by GitHub
parent c81b3cfe59
commit 66cd36268a

View File

@@ -1,6 +1,6 @@
import sys
from typing import Any, Callable, Optional
from typing import Any, Callable, Dict, List, Optional
from tornado import httputil
MIN_SUPPORTED_SIGNED_VALUE_VERSION: Any
@@ -16,10 +16,10 @@ else:
class RequestHandler:
SUPPORTED_METHODS: Any
application: Any
request: Any
path_args: Any
path_kwargs: Any
application: Application
request: httputil.HTTPServerRequest
path_args: List[str]
path_kwargs: Dict[str, str]
ui: Any
def __init__(self, application, request, **kwargs) -> None: ...
initialize: Callable[..., None] = ...