mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
mypy: Clarify Callable parameters & return type for get_timing.
This commit is contained in:
committed by
Tim Abbott
parent
304e411944
commit
7f5b69bca8
@@ -63,7 +63,7 @@ def update_unread_flags(cursor, user_message_ids):
|
||||
|
||||
|
||||
def get_timing(message, f):
|
||||
# type: (str, Callable) -> None
|
||||
# type: (str, Callable[[], None]) -> None
|
||||
start = time.time()
|
||||
logger.info(message)
|
||||
f()
|
||||
|
Reference in New Issue
Block a user