Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2024
1 parent fdaee58 commit 1bb25ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion discord/ext/paginator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .pages import *
from .paginator import *

__version__ = '0.0.1-a'
__version__ = "0.0.1-a"
1 change: 1 addition & 0 deletions discord/ext/paginator/buttons.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations

from enum import Enum
from typing import TYPE_CHECKING

Expand Down
1 change: 1 addition & 0 deletions discord/ext/paginator/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
DEALINGS IN THE SOFTWARE.
"""
from __future__ import annotations

from typing import TYPE_CHECKING

import discord
Expand Down
15 changes: 6 additions & 9 deletions discord/ext/paginator/paginator.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
from __future__ import annotations

from collections.abc import Mapping
from typing import overload, TYPE_CHECKING
from typing import TYPE_CHECKING, overload

import discord

from .buttons import PaginatorButton, PaginatorButtonType, PaginatorMenu
from .pages import Page, PageGroup

if TYPE_CHECKING:
from discord.ext.bridge import (
BridgeExtContext,
BridgeApplicationContext,
)
from discord.ext.bridge import BridgeApplicationContext, BridgeExtContext

__all__ = ("Paginator",)

Expand Down Expand Up @@ -257,7 +255,6 @@ async def update(
self.show_menu = show_menu if show_menu is not None else self.show_menu

if pages is not None:

all_groups = True
default_group: PageGroup | None = None

Expand Down Expand Up @@ -658,7 +655,7 @@ async def send(
destination: discord.abc.Messageable,
**kwargs,
) -> discord.Message:
"""Sends a message with the paginated items.
r"""Sends a message with the paginated items.
Parameters
----------
Expand Down Expand Up @@ -716,7 +713,7 @@ async def edit(
| BridgeExtContext,
**kwargs,
) -> discord.Message | discord.InteractionMessage | None:
"""Edits an existing message to replace it with the paginator.
r"""Edits an existing message to replace it with the paginator.
.. note::
Expand Down Expand Up @@ -766,7 +763,7 @@ async def respond(
ephemeral: bool = False,
**kwargs,
) -> discord.Message | discord.WebhookMessage:
"""Sends an interaction response or followup with the paginated items. This will use the `respond` method.
r"""Sends an interaction response or followup with the paginated items. This will use the `respond` method.
Parameters
----------
Expand Down

0 comments on commit 1bb25ae

Please sign in to comment.