You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base component __repr__ is broken. It assumed that _prop_names[0] is always children, which is not true.
This breaks some things, for example if a component does not have children and thus its first prop is id, it will print the id as the first positional argument rather than a proper keyword argument. This is mostly relevant for dash-html-components.
For example:
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dash_core_components as dcc
>>> dcc.RadioItems(id='hello')
RadioItems('hello')
>>> import dash_html_components as html
>>> html.Div(id='hello')
Div(id='hello')
The text was updated successfully, but these errors were encountered:
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson
Base component
__repr__
is broken. It assumed that_prop_names[0]
is alwayschildren
, which is not true.This breaks some things, for example if a component does not have
children
and thus its first prop isid
, it will print theid
as the first positional argument rather than a proper keyword argument. This is mostly relevant fordash-html-components
.For example:
The text was updated successfully, but these errors were encountered: