Update pyright to 1.1.289

This commit is contained in:
Rapptz
2023-01-16 21:54:57 -05:00
parent bf860b0b07
commit 3ff88db768
7 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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