File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ class InputText(Component):
149
149
The style of the input text field.
150
150
custom_id: Optional[:class:`str`]
151
151
The ID of the input text field that gets received during an interaction.
152
- label: Optional[ :class:`str`]
153
- The label for the input text field, if any .
152
+ label: :class:`str`
153
+ The label for the input text field.
154
154
placeholder: Optional[:class:`str`]
155
155
The placeholder text that is shown if nothing is selected, if any.
156
156
min_length: Optional[:class:`int`]
@@ -182,7 +182,7 @@ def __init__(self, data: InputTextComponentPayload):
182
182
self .type = ComponentType .input_text
183
183
self .style : InputTextStyle = try_enum (InputTextStyle , data ["style" ])
184
184
self .custom_id = data ["custom_id" ]
185
- self .label : Optional [ str ] = data .get ("label" , None )
185
+ self .label : str = data .get ("label" , None )
186
186
self .placeholder : Optional [str ] = data .get ("placeholder" , None )
187
187
self .min_length : Optional [int ] = data .get ("min_length" , None )
188
188
self .max_length : Optional [int ] = data .get ("max_length" , None )
You can’t perform that action at this time.
0 commit comments