Skip to content

Commit b023619

Browse files
committed
Cahnged typing to more generic
1 parent 36de29b commit b023619

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/scheduler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, polling_period: float = 0.1):
1414

1515
def run_with_interval(
1616
self,
17-
func: Callable[[threading.Event, ...], None],
17+
func: Callable,
1818
interval: float,
1919
cancel: threading.Event,
2020
args: tuple = (),
@@ -31,14 +31,14 @@ def run_with_interval(
3131
return thread
3232

3333
def _get_timer(
34-
self, func: Callable[[threading.Event, ...], None], interval: float, args: tuple
34+
self, func: Callable, interval: float, args: tuple
3535
) -> threading.Timer:
3636
timer = threading.Timer(interval=interval, function=func, args=args)
3737
return timer
3838

3939
def _run_timer(
4040
self,
41-
func: Callable[[threading.Event, ...], None],
41+
func: Callable,
4242
interval: float,
4343
args: tuple,
4444
done: threading.Event,

0 commit comments

Comments
 (0)