mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update comments after # type: ignore to be compatible with PEP 484
This commit is contained in:
1 parent
0bcb0d0e3c
commit
5ffa3e85de
25 files changed
+68
-68
No files matched your search
@@ -126,7 +126,7 @@ class ActionRow(Component):
|
||||
return {
|
||||
'type': int(self.type),
|
||||
'components': [child.to_dict() for child in self.children],
|
||||
} # type: ignore - Type checker does not understand these are the same
|
||||
} # type: ignore # Type checker does not understand these are the same
|
||||
|
||||
|
||||
class Button(Component):
|
||||
@@ -198,7 +198,7 @@ class Button(Component):
|
||||
if self.emoji:
|
||||
payload['emoji'] = self.emoji.to_dict()
|
||||
|
||||
return payload # type: ignore - Type checker does not understand these are the same
|
||||
return payload # type: ignore # Type checker does not understand these are the same
|
||||
|
||||
|
||||
class SelectMenu(Component):
|
||||
@@ -364,7 +364,7 @@ class SelectOption:
|
||||
}
|
||||
|
||||
if self.emoji:
|
||||
payload['emoji'] = self.emoji.to_dict() # type: ignore - This Dict[str, Any] is compatible with PartialEmoji
|
||||
payload['emoji'] = self.emoji.to_dict() # type: ignore # This Dict[str, Any] is compatible with PartialEmoji
|
||||
|
||||
if self.description:
|
||||
payload['description'] = self.description
|
||||
|
||||
Reference in new issue
Block a user