Skip to content

Commit

Permalink
Clarify type of function
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 22, 2023
1 parent b991488 commit d21c3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ltk/jquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def schedule(function, timeout_seconds=0.1):
js.clearTimeout(timers[function])
timers[function] = js.setTimeout(proxy(function), int(timeout_seconds * 1000))

def repeat(function, timeout_seconds=1):
js.setInterval(proxy(function), int(timeout_seconds * 1000))
def repeat(unproxied_pyton_function, timeout_seconds=1):
js.setInterval(proxy(unproxied_pyton_function), int(timeout_seconds * 1000))

def get(route, handler, kind="json"):
def wrapper(data, *rest):
Expand Down

0 comments on commit d21c3e5

Please sign in to comment.