mypy: Specify Callable parameter/return type for run decorator in tools/diagnose.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-10-30 23:34:20 -07:00 committed by Tim Abbott
parent 7d8de37299
commit 966d5f3760
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ from scripts.lib.zulip_tools import get_dev_uuid_var_path
UUID_VAR_PATH = get_dev_uuid_var_path()
def run(check_func):
# type: (Callable) -> None
# type: (Callable[[], bool]) -> None
'''
This decorator simply runs functions. It makes it more
convenient to add new checks without a big main() function.