mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update Pyright to v1.1.394
This commit is contained in:
1 parent
1cdf710908
commit
8953938a53
30 files changed
+94
-81
No files matched your search
+1
-1
@@ -437,7 +437,7 @@ class Invite(Hashable):
|
||||
def from_incomplete(cls, *, state: ConnectionState, data: InvitePayload) -> Self:
|
||||
guild: Optional[Union[Guild, PartialInviteGuild]]
|
||||
try:
|
||||
guild_data = data['guild']
|
||||
guild_data = data['guild'] # pyright: ignore[reportTypedDictNotRequiredAccess]
|
||||
except KeyError:
|
||||
# If we're here, then this is a group DM
|
||||
guild = None
|
||||
|
||||
Reference in new issue
Block a user