mypy: Set local_partial_types = True.

The daemon implicitly sets this flag, so set it explicitly and fix all
of the type errors.
This commit is contained in:
Michael J. Sullivan
2018-05-15 16:35:23 -04:00
committed by Tim Abbott
parent 4a78c00397
commit d5ee801d60
6 changed files with 13 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ def tracemalloc_listen_sock(sock: socket.socket) -> None:
sock.recv(1)
tracemalloc_dump()
listener_pid = None # Optional[int]
listener_pid = None # type: Optional[int]
def tracemalloc_listen() -> None:
global listener_pid