mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Update Pyright to v1.1.394
This commit is contained in:
@ -326,7 +326,7 @@ class Member(discord.abc.Messageable, _UserTag):
|
||||
self._flags: int = data['flags']
|
||||
self._avatar_decoration_data: Optional[AvatarDecorationData] = data.get('avatar_decoration_data')
|
||||
try:
|
||||
self._permissions = int(data['permissions'])
|
||||
self._permissions = int(data['permissions']) # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
except KeyError:
|
||||
self._permissions = None
|
||||
|
||||
@ -418,12 +418,12 @@ class Member(discord.abc.Messageable, _UserTag):
|
||||
# the nickname change is optional,
|
||||
# if it isn't in the payload then it didn't change
|
||||
try:
|
||||
self.nick = data['nick']
|
||||
self.nick = data['nick'] # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
try:
|
||||
self.pending = data['pending']
|
||||
self.pending = data['pending'] # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user