Skip to content

Commit

Permalink
chore: fix type hints (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray authored Jan 31, 2024
1 parent ab65f47 commit adb7941
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 <frequency> 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 <frequency> 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 {}
Expand Down

0 comments on commit adb7941

Please sign in to comment.