From 6c76610cdb72bccc4037f2114c50c58d4f0ce125 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 15 Jun 2024 20:35:25 +0100 Subject: [PATCH] Add type hints --- agenda/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agenda/data.py b/agenda/data.py index d640557..462b3d9 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -97,8 +97,8 @@ def find_events_during_stay( async def time_function( name: str, func: typing.Callable[..., typing.Coroutine[typing.Any, typing.Any, typing.Any]], - *args, - **kwargs, + *args: typing.Any, + **kwargs: typing.Any, ) -> tuple[str, typing.Any, float, Exception | None]: """Time the execution of an asynchronous function.""" start_time, result, exception = time(), None, None