mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
mypy: Specify Callable parameter/return type for run decorator in tools/diagnose.
This commit is contained in:
committed by
Tim Abbott
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()
|
UUID_VAR_PATH = get_dev_uuid_var_path()
|
||||||
|
|
||||||
def run(check_func):
|
def run(check_func):
|
||||||
# type: (Callable) -> None
|
# type: (Callable[[], bool]) -> None
|
||||||
'''
|
'''
|
||||||
This decorator simply runs functions. It makes it more
|
This decorator simply runs functions. It makes it more
|
||||||
convenient to add new checks without a big main() function.
|
convenient to add new checks without a big main() function.
|
||||||
|
Reference in New Issue
Block a user