Skip to content

Commit c61cb7a

Browse files
Chris PChris P
Chris P
authored and
Chris P
committed
Revert "Provide a simple example of the error"
This reverts commit 966aeef.
1 parent 966aeef commit c61cb7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dash/development/base_component.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ def __init__(self, **kwargs):
136136
raise TypeError(
137137
error_string_prefix
138138
+ " detected a Component for a prop other than `children`\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"
139+
+ "Did you forget to wrap multiple `children` in an array?\n"
140+
+ f"Prop {k} has value {v!r}\n"
142141
)
143142

144143
if k == "id":

0 commit comments

Comments
 (0)