Skip to content

Commit 966aeef

Browse files
authored
Provide a simple example of the error
1 parent 60ecb0b commit 966aeef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dash/development/base_component.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ def __init__(self, **kwargs):
136136
raise TypeError(
137137
error_string_prefix
138138
+ " detected a Component for a prop other than `children`\n"
139-
+ "Did you forget to wrap multiple `children` in an array?\n"
140-
+ f"Prop {k} has value {v!r}\n"
139+
+ f"Prop {k} has value {v!r}\n"
140+
+ "Did you forget to wrap multiple `children` in an list?\n"
141+
+ "For example, it must be html.Div([\"a\", \"b\", \"c\"]) not html.Div(\"a\", \"b\", \"c\")\n"
141142
)
142143

143144
if k == "id":

0 commit comments

Comments
 (0)