mirror of
https://github.com/Paillat-dev/pycord-reactive-views.git
synced 2026-01-02 01:06:18 +00:00
🐛 Fix type ignore comments in components and view
This commit is contained in:
@@ -75,7 +75,7 @@ class ReactiveSelect(discord.ui.Select, Reactive): # pyright: ignore[reportUnsa
|
||||
disabled: MaybeReactiveValue[bool] = False,
|
||||
row: MaybeReactiveValue[int | None] = None,
|
||||
) -> None:
|
||||
discord.ui.Select.__init__(self) # pyright: ignore [reportUnknownMemberType, reportArgumentType]
|
||||
discord.ui.Select.__init__(self) # pyright: ignore [reportUnknownMemberType]
|
||||
Reactive.__init__(self)
|
||||
self.add_reactive("placeholder", placeholder)
|
||||
self.add_reactive("min_values", min_values)
|
||||
|
||||
@@ -53,9 +53,9 @@ class ReactiveView(discord.ui.View):
|
||||
if not editable:
|
||||
raise ValueError("View has no editable (not yet sent?), can't refresh")
|
||||
if embeds := await self._get_embeds():
|
||||
await editable.edit(content=await self._get_content(), embeds=embeds, view=self)
|
||||
await editable.edit(content=await self._get_content(), embeds=embeds, view=self) # pyright: ignore[reportUnknownMemberType]
|
||||
else:
|
||||
await editable.edit(content=await self._get_content(), view=self)
|
||||
await editable.edit(content=await self._get_content(), view=self) # pyright: ignore[reportUnknownMemberType]
|
||||
|
||||
async def send(self, ctx: discord.ApplicationContext | discord.Interaction, ephemeral: bool = False) -> None:
|
||||
"""Send the view to a context."""
|
||||
|
||||
Reference in New Issue
Block a user