Skip to content

Commit

Permalink
sim767x cleanup...
Browse files Browse the repository at this point in the history
  • Loading branch information
James Boulton committed Apr 3, 2024
1 parent fa7791e commit 13e7ff4
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 253 deletions.
6 changes: 3 additions & 3 deletions dashio/schedular.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class Schedular:
"""

def __init__(self, name: str = ""):
self._timer_events = [dict[str, Any]]
self._async_jobs = [Callable[[float], float]]
self._timer_events = []
self._async_jobs = []

self._job_thread_end = threading.Event()
logger.info("Starting Schedular async thread")
Expand Down Expand Up @@ -109,7 +109,7 @@ def add_timer(self, delta_time: float, offset: float, callback: Callable[[Any],
The callback function to call
"""

d = {
d: dict[str, Any] = {
'delta_time': delta_time,
'callback': callback,
'deadline': (time.time() + delta_time + offset),
Expand Down
Loading

0 comments on commit 13e7ff4

Please sign in to comment.