Skip to content

Commit

Permalink
add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
keakon committed Mar 27, 2024
1 parent a8468a6 commit 1a66f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delayed/sweeper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

import time
from typing import Union
from typing import List, Union

from .constants import Status
from .logger import logger
Expand All @@ -17,7 +17,7 @@ class Sweeper:
It tries to requeue lost tasks every `interval` seconds.
"""

def __init__(self, queues: list[Queue], interval: Union[int, float] = 60):
def __init__(self, queues: List[Queue], interval: Union[int, float] = 60):
self._queues = queues
self._interval = interval
self._status = Status.STOPPED
Expand Down

0 comments on commit 1a66f26

Please sign in to comment.