Skip to content

Commit bf479ec

Browse files
committed
Handle obj.update(title=title_str)
1 parent 4cfee5a commit bf479ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/basedatatypes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,8 @@ def _perform_update(plotly_obj, update_obj):
22482248
val = update_obj[key]
22492249
validator = plotly_obj._get_prop_validator(key)
22502250

2251-
if isinstance(validator, CompoundValidator):
2251+
if (isinstance(validator, CompoundValidator) and
2252+
isinstance(val, dict)):
22522253

22532254
# Update compound objects recursively
22542255
# plotly_obj[key].update(val)

0 commit comments

Comments
 (0)