mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-20 23:42:58 +00:00
Update pyright to 1.1.289
This commit is contained in:
@@ -1010,7 +1010,7 @@ class Command(Generic[GroupT, P, T]):
|
||||
if self.binding is not None:
|
||||
check: Optional[Check] = getattr(self.binding, 'interaction_check', None)
|
||||
if check:
|
||||
ret = await maybe_coroutine(check, interaction)
|
||||
ret = await maybe_coroutine(check, interaction) # type: ignore # Probable pyright bug
|
||||
if not ret:
|
||||
return False
|
||||
|
||||
|
@@ -445,7 +445,7 @@ class Choice(Generic[ChoiceT]):
|
||||
def from_dict(cls, data: ApplicationCommandOptionChoice) -> Choice[ChoiceT]:
|
||||
self = cls.__new__(cls)
|
||||
self.name = data['name']
|
||||
self.value = data['value']
|
||||
self.value = data['value'] # type: ignore # This seems to break every other pyright release
|
||||
self.name_localizations = _to_locale_dict(data.get('name_localizations') or {})
|
||||
return self
|
||||
|
||||
|
Reference in New Issue
Block a user