initial_value
for RichTextInputElement
should also accept type RichTextBlock
#1571
Closed
1 of 9 tasks
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Version: 3x
web-client
Milestone
While using the
RichTextInputElement
, I realized through the type information that the type ofinitial_value
expects to be an optional dictionary. There is seemingly no mention ofRichTextBlock
, so I had thought that at that point I would need to go and look at the API and manually create dictionaries to handle this.This is not true.
initial_value
can be set to a RichTextBlock directly, without even needing to convert it to a dictionary. For example, this code works, without me even needing to transform any of these blocks to adict
:...but it gives me an error in my IDE from
mypy
(rightly, becauseinitial_value
doesn't haveRichTextBlock
in its type definition):Can the
initial_value
forRichTextInputElement
includeRichTextBlock
? Thanks!Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: