Add PEP-484 type annotations to zerver/lib/.

This commit is contained in:
Tim Abbott
2016-01-25 14:42:16 -08:00
parent d8f7d89fb4
commit 2059f650ab
17 changed files with 62 additions and 47 deletions

View File

@@ -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):