From 0c5f419be0761ed9cd7d3915fd5e29df11753acb Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 15 Oct 2016 22:21:41 -0700 Subject: [PATCH] Annotate test-queue-worker-reload. --- tools/test-queue-worker-reload | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/test-queue-worker-reload b/tools/test-queue-worker-reload index 8d14071f55..e3cfcddcc6 100755 --- a/tools/test-queue-worker-reload +++ b/tools/test-queue-worker-reload @@ -11,6 +11,7 @@ import subprocess import re from six.moves import range +from typing import IO, Text TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) succesful_worker_launches = [ @@ -31,7 +32,9 @@ succesful_worker_launches = [ ] def check_worker_launch(logfile): + # type: (IO) -> Text def check(content): + # type: (str) -> bool flag = True for entry in succesful_worker_launches: flag = flag and entry in content