Skip to content

Commit 24c82c5

Browse files
committed
💨 avoid deepcopy in validate_coerce when BaseTraceType
1 parent eff3a3e commit 24c82c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/python/plotly/_plotly_utils/basevalidators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,8 +2636,7 @@ def validate_coerce(self, v, skip_invalid=False, _validate=True):
26362636
for v_el in v:
26372637

26382638
if isinstance(v_el, BaseTraceType):
2639-
# Clone input traces
2640-
v_el = v_el.to_plotly_json()
2639+
v_el = v_el._props
26412640

26422641
if isinstance(v_el, dict):
26432642
type_in_v_el = "type" in v_el

0 commit comments

Comments
 (0)