mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Add PEP-484 type annotations to zerver/lib/.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from __future__ import absolute_import
|
||||
from typing import *
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.importlib import import_module
|
||||
@@ -79,7 +80,7 @@ class SocketConnection(sockjs.tornado.SockJSConnection):
|
||||
|
||||
self.authenticated = False
|
||||
self.session.user_profile = None
|
||||
self.close_info = None
|
||||
self.close_info = None # type: CloseErrorInfo
|
||||
self.did_close = False
|
||||
|
||||
try:
|
||||
@@ -226,7 +227,7 @@ class SocketConnection(sockjs.tornado.SockJSConnection):
|
||||
self.did_close = True
|
||||
|
||||
def fake_message_sender(event):
|
||||
log_data = dict()
|
||||
log_data = dict() # type: Dict[str, Any]
|
||||
record_request_start_data(log_data)
|
||||
|
||||
req = event['request']
|
||||
|
||||
Reference in New Issue
Block a user