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

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