Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarrara committed Apr 25, 2024
1 parent 0b07358 commit 7c93707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_token_bucket/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__version__ = "0.1.2"


from typing import Callable
from typing import Callable, Optional

from .backends import Backend

Expand All @@ -13,7 +13,7 @@ def __init__(
bucket_size: int,
refresh_interval: int,
backend: Backend,
listener: Callable[[int], None] | None = None,
listener: Optional[Callable[[int], None]] = None,
):
"""Create a new SimpleTokenBucket.
Expand Down

0 comments on commit 7c93707

Please sign in to comment.