aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-07-08 15:01:39 +0100
committerGravatar wookie184 <[email protected]>2023-07-08 15:01:39 +0100
commitcb87d90a7f57b87b766d06ed3078d0b021f1a593 (patch)
treee53998abc6c60872f4faf5c857c97ebd4edd4840 /bot
parentFix and simplify 'disambiguate' utility (diff)
Type hint pagination as allowing float timeout
Diffstat (limited to 'bot')
-rw-r--r--bot/utils/pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/utils/pagination.py b/bot/utils/pagination.py
index ef3186d0..d86bb033 100644
--- a/bot/utils/pagination.py
+++ b/bot/utils/pagination.py
@@ -90,7 +90,7 @@ class LinePaginator(Paginator):
cls, lines: Iterable[str], ctx: Context,
embed: Embed, prefix: str = "", suffix: str = "",
max_lines: int | None = None, max_size: int = 500, empty: bool = True,
- restrict_to_user: User = None, timeout: int = 300, footer_text: str = None,
+ restrict_to_user: User = None, timeout: float = 300, footer_text: str = None,
url: str = None, exception_on_empty_embed: bool = False
) -> None:
"""
@@ -308,7 +308,7 @@ class ImagePaginator(Paginator):
@classmethod
async def paginate(cls, pages: list[tuple[str, str]], ctx: Context, embed: Embed,
- prefix: str = "", suffix: str = "", timeout: int = 300,
+ prefix: str = "", suffix: str = "", timeout: float = 300,
exception_on_empty_embed: bool = False) -> None:
"""
Use a paginator and set of reactions to provide pagination over a set of title/image pairs.