Update comments after # type: ignore to be compatible with PEP 484

This commit is contained in:
jack1142
2022-03-28 04:26:34 +02:00
committed by GitHub
parent 0bcb0d0e3c
commit 5ffa3e85de
25 changed files with 68 additions and 68 deletions

View File

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