Skip to content

Commit c5bdc3e

Browse files
committed
BaseFigure.add_vline: coerce legacy annotation_* kwargs into shape.label (prep for shape.label refactor)
1 parent 1d88dcd commit c5bdc3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plotly/basedatatypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4223,6 +4223,8 @@ def add_vline(
42234223
annotation=None,
42244224
**kwargs,
42254225
):
4226+
# NEW (Step 2): translate legacy annotation_* → label (non-destructive; warns if used)
4227+
kwargs = _coerce_shape_label_from_legacy_annotation_kwargs(kwargs)
42264228
self._process_multiple_axis_spanning_shapes(
42274229
dict(type="line", x0=x, x1=x, y0=0, y1=1),
42284230
row,

0 commit comments

Comments
 (0)