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:
@@ -166,7 +166,7 @@ class DummyObject(object):
|
||||
class DummyTornadoRequest(object):
|
||||
def __init__(self):
|
||||
self.connection = DummyObject()
|
||||
self.connection.stream = DummyStream()
|
||||
self.connection.stream = DummyStream() # type: ignore # monkey-patching here
|
||||
|
||||
class DummyHandler(object):
|
||||
def __init__(self, assert_callback):
|
||||
@@ -202,7 +202,7 @@ class POSTRequestMock(object):
|
||||
self.user = user_profile
|
||||
self._tornado_handler = DummyHandler(assert_callback)
|
||||
self.session = DummySession()
|
||||
self._log_data = {}
|
||||
self._log_data = {} # type: Dict[str, Any]
|
||||
self.META = {'PATH_INFO': 'test'}
|
||||
|
||||
class AuthedTestCase(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user