File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ def attributes(self) -> Set[str]:
280280 def __init__ (
281281 self ,
282282 * ,
283- label : Union [str , dict , TextObject ],
283+ label : Union [str , dict , PlainTextObject ],
284284 element : Union [str , dict , InputInteractiveElement ],
285285 block_id : Optional [str ] = None ,
286286 hint : Optional [Union [str , dict , PlainTextObject ]] = None ,
@@ -295,9 +295,9 @@ def __init__(
295295 super ().__init__ (type = self .type , block_id = block_id )
296296 show_unknown_key_warning (self , others )
297297
298- self .label = TextObject .parse (label )
298+ self .label = TextObject .parse (label , default_type = PlainTextObject . type )
299299 self .element = BlockElement .parse (element )
300- self .hint = PlainTextObject .parse (hint )
300+ self .hint = TextObject .parse (hint , default_type = PlainTextObject . type )
301301 self .optional = optional
302302
303303 @JsonValidator (f"label attribute cannot exceed { label_max_length } characters" )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def __init__(
4747 app_id : Optional [str ] = None ,
4848 root_view_id : Optional [str ] = None ,
4949 previous_view_id : Optional [str ] = None ,
50- title : Union [dict , PlainTextObject ] = None ,
50+ title : Union [str , dict , PlainTextObject ] = None ,
5151 submit : Optional [Union [str , dict , PlainTextObject ]] = None ,
5252 close : Optional [Union [str , dict , PlainTextObject ]] = None ,
5353 blocks : List [Union [dict , Block ]] = [],
You can’t perform that action at this time.
0 commit comments