aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/pagination.py
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-08-23 10:31:24 +0100
committerGravatar wookie184 <[email protected]>2023-08-23 10:31:24 +0100
commit6ebc2806b1b2737c27c090da324d85577ea67fb6 (patch)
tree1fb65b1dd1c8185bab4874dfc8fe5e272f20de3d /bot/utils/pagination.py
parentHandle snakes without images (diff)
parentCorrected attribute name to fetch github url in extensions.py (#1348) (diff)
Merge branch 'main' into snakes-cleanup
Diffstat (limited to 'bot/utils/pagination.py')
-rw-r--r--bot/utils/pagination.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/utils/pagination.py b/bot/utils/pagination.py
index d86bb033..58115fd6 100644
--- a/bot/utils/pagination.py
+++ b/bot/utils/pagination.py
@@ -90,8 +90,8 @@ 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: float = 300, footer_text: str = None,
- url: str = None, exception_on_empty_embed: bool = False
+ restrict_to_user: User = None, timeout: float = 300, footer_text: str | None = None,
+ url: str | None = None, exception_on_empty_embed: bool = False
) -> None:
"""
Use a paginator and set of reactions to provide pagination over a set of lines.
@@ -302,7 +302,7 @@ class ImagePaginator(Paginator):
self._current_page.append(line)
self.close_page()
- def add_image(self, image: str = None) -> None:
+ def add_image(self, image: str | None = None) -> None:
"""Adds an image to a page given the url."""
self.images.append(image)