Skip to content

Commit

Permalink
Incorporate latest typing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iMaxii committed May 29, 2024
1 parent 81da296 commit 91325f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/cogs/core/paginator.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import inspect
from typing import Any, Callable, Coroutine, Optional, Union
from typing import Any, Callable, Coroutine

import discord
from discord.ext import commands

from bot.utils.ctx import Ctx
from bot.villager_bot import VillagerBotCluster

PAGE_EMBED_CALLABLE = Callable[[int], Union[discord.Embed, Coroutine[Any, Any, discord.Embed]]]
PAGE_EMBED_CALLABLE = Callable[[int], discord.Embed | Coroutine[Any, Any, discord.Embed]]


class PaginatorView(discord.ui.View):
Expand Down Expand Up @@ -79,7 +79,7 @@ async def paginate_embed(
get_page: PAGE_EMBED_CALLABLE,
*,
timeout: float = 60,
page_count: Optional[int] = None,
page_count: int | None = None,
):
# send initial message
embed = await self._get_page(get_page, 0)
Expand Down

0 comments on commit 91325f7

Please sign in to comment.