From f1c397dfb49c7fcd2dfb0556214ce1586a5c89c4 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Sat, 7 Jun 2025 13:42:25 +0200 Subject: [PATCH] typing --- discord/components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/components.py b/discord/components.py index 6dbe2e710..407e460b0 100644 --- a/discord/components.py +++ b/discord/components.py @@ -1267,9 +1267,9 @@ class Container(Component): def to_dict(self) -> ContainerComponentPayload: payload: ContainerComponentPayload = { - 'type': self.type.value, # type: ignore + 'type': self.type.value, 'spoiler': self.spoiler, - 'components': [c.to_dict() for c in self.children], + 'components': [c.to_dict() for c in self.children], # pyright: ignore[reportAssignmentType] } if self.id is not None: payload['id'] = self.id