mirror of https://github.com/zulip/zulip.git
mypy: Specify Callable parameter/return type for run decorator in tools/diagnose.
This commit is contained in:
parent
7d8de37299
commit
966d5f3760
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue