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

@@ -1,4 +1,5 @@
from __future__ import absolute_import
from typing import *
import sys
import time
@@ -33,8 +34,8 @@ def timeout(timeout, func, *args, **kwargs):
class TimeoutThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.result = None
self.exc_info = None
self.result = None # type: Any
self.exc_info = None # type: Tuple[type, BaseException, Any]
# Don't block the whole program from exiting
# if this is the only thread left.