diff --git a/discord/components.py b/discord/components.py index fbb87aba1..9e1d33d62 100644 --- a/discord/components.py +++ b/discord/components.py @@ -415,7 +415,7 @@ class TextInput(Component): __repr_info__: ClassVar[Tuple[str, ...]] = __slots__ def __init__(self, data: TextInputPayload) -> None: - self.type: ComponentType = ComponentType.text_input + self.type: Literal[ComponentType.text_input] = ComponentType.text_input self.style: TextStyle = try_enum(TextStyle, data['style']) self.label: str = data['label'] self.custom_id: str = data['custom_id']