mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Update Pyright to v1.1.394
This commit is contained in:
@ -219,14 +219,15 @@ class Interaction(Generic[ClientT]):
|
||||
int(k): int(v) for k, v in data.get('authorizing_integration_owners', {}).items()
|
||||
}
|
||||
try:
|
||||
self.context = AppCommandContext._from_value([data['context']])
|
||||
value = data['context'] # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
self.context = AppCommandContext._from_value([value])
|
||||
except KeyError:
|
||||
self.context = AppCommandContext()
|
||||
|
||||
self.locale: Locale = try_enum(Locale, data.get('locale', 'en-US'))
|
||||
self.guild_locale: Optional[Locale]
|
||||
try:
|
||||
self.guild_locale = try_enum(Locale, data['guild_locale'])
|
||||
self.guild_locale = try_enum(Locale, data['guild_locale']) # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
except KeyError:
|
||||
self.guild_locale = None
|
||||
|
||||
|
Reference in New Issue
Block a user