From 439b2a5e7bb166381f768fcf79b22f36d5bfd064 Mon Sep 17 00:00:00 2001 From: Mike Gray Date: Tue, 30 Jan 2024 21:52:25 -0600 Subject: [PATCH] chore: fix type hints --- ovos_workshop/skills/ovos.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index a637c050..b575a920 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -2183,8 +2183,8 @@ def schedule_event(self, handler: callable, return self.event_scheduler.schedule_event(handler, when, data, name, context=context) - def schedule_repeating_event(self, handler: callable, - when: Union[int, float, datetime.datetime], + def schedule_repeating_event(self, handler: Callable, + when: Optional[Union[int, float, datetime.datetime]], frequency: Union[int, float], data: Optional[dict] = None, name: Optional[str] = None, @@ -2193,17 +2193,17 @@ def schedule_repeating_event(self, handler: callable, Schedule a repeating event. Args: - handler: method to be called - when (datetime): time (in system timezone) for first - calling the handler, or None to - initially trigger seconds - from now - frequency (float/int): time in seconds between calls - data (dict, optional): data to send when the handler is called - name (str, optional): reference name, must be unique - context (dict, optional): context (dict, optional): message - context to send when the handler - is called + handler (callable): method to be called + when (datetime, optional): time (in system timezone) for first + calling the handler, or None to + initially trigger seconds + from now + frequency (float/int): time in seconds between calls + data (dict, optional): data to send when the handler is called + name (str, optional): reference name, must be unique + context (dict, optional): context (dict, optional): message + context to send when the handler + is called """ message = dig_for_message() context = context or message.context if message else {}