Skip to content

Commit d0522f5

Browse files
committed
incorrect use of 'is' changed to '=='
1 parent ebb3808 commit d0522f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/python/plotly/plotly/basedatatypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ def _add_annotation_like(
15681568
)
15691569
)
15701570
# If the new_object was created with an xref specified, the specified xref should be used otherwise assign the xref from the layout_keys
1571-
if new_obj.xref is None:
1571+
if new_obj.xref == None:
15721572
if secondary_y:
15731573
xaxis = refs[1].layout_keys[0]
15741574
else:
@@ -1577,7 +1577,7 @@ def _add_annotation_like(
15771577
else:
15781578
xref = new_obj.xref
15791579
# If the new_object was created with an xref specified, the specified xref should be used otherwise assign the xref from the layout_keys
1580-
if new_obj.yref is None:
1580+
if new_obj.yref == None:
15811581
if secondary_y:
15821582
yaxis = refs[1].layout_keys[1]
15831583
else:

0 commit comments

Comments
 (0)