Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions stubs/ratelimit/ratelimit/decorators.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import FloatInt
from collections.abc import Callable
from typing import ParamSpec, TypeVar

Expand All @@ -7,7 +6,7 @@ _T = TypeVar("_T")

class RateLimitDecorator:
def __init__(
self, calls: int = 15, period: FloatInt = 900, clock: Callable[[], float] = ..., raise_on_limit: bool = True
self, calls: int = 15, period: float | int = 900, clock: Callable[[], float] = ..., raise_on_limit: bool = True
) -> None: ...
def __call__(self, func: Callable[_P, _T]) -> Callable[_P, _T]: ...

Expand Down
6 changes: 2 additions & 4 deletions stubs/ratelimit/ratelimit/exception.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from _typeshed import FloatInt

class RateLimitException(Exception):
period_remaining: FloatInt
def __init__(self, message: str, period_remaining: FloatInt) -> None: ...
period_remaining: float | int
def __init__(self, message: str, period_remaining: float | int) -> None: ...
Loading