handlers: Remove duplicate type annotation.

`self._request_middleware` is already typed in the `__init__` method.
This commit is contained in:
Wyatt Hoodes 2019-07-22 10:19:48 -10:00 committed by Tim Abbott
parent 97fbcf020f
commit a2fa1a6f25
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class AsyncDjangoHandlerBase(tornado.web.RequestHandler, base.BaseHandler): # n
the old logic. The added advantage is that due to this our event
system code doesn't change.
"""
self._request_middleware = [] # type: Optional[List[Callable[[HttpRequest], HttpResponse]]]
self._request_middleware = []
self._view_middleware = [] # type: List[Callable[[HttpRequest, ViewFuncT, List[str], Dict[str, Any]], Optional[HttpResponse]]]
self._template_response_middleware = [] # type: List[Callable[[HttpRequest, HttpResponse], HttpResponse]]
self._response_middleware = [] # type: List[Callable[[HttpRequest, HttpResponse], HttpResponse]]