mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Reformat entire project with ruff instead of black
This commit is contained in:
1 parent
3ef6272e07
commit
44a44e938f
88 files changed
+485
-730
No files matched your search
+3
-6
@@ -75,16 +75,13 @@ class ExponentialBackoff(Generic[T]):
|
||||
self._randfunc: Callable[..., Union[int, float]] = rand.randrange if integral else rand.uniform
|
||||
|
||||
@overload
|
||||
def delay(self: ExponentialBackoff[Literal[False]]) -> float:
|
||||
...
|
||||
def delay(self: ExponentialBackoff[Literal[False]]) -> float: ...
|
||||
|
||||
@overload
|
||||
def delay(self: ExponentialBackoff[Literal[True]]) -> int:
|
||||
...
|
||||
def delay(self: ExponentialBackoff[Literal[True]]) -> int: ...
|
||||
|
||||
@overload
|
||||
def delay(self: ExponentialBackoff[bool]) -> Union[int, float]:
|
||||
...
|
||||
def delay(self: ExponentialBackoff[bool]) -> Union[int, float]: ...
|
||||
|
||||
def delay(self) -> Union[int, float]:
|
||||
"""Compute the next delay
|
||||
|
||||
Reference in new issue
Block a user