Skip to content

implement pull request #3731 and add tests to fix #3065 #5195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
used black to reformat the file that had reformat errors
  • Loading branch information
amiteitan committed May 20, 2025
commit f2049c5c29aec9d6a33c8e73b944dfb55e5afbd6
5 changes: 4 additions & 1 deletion tests/test_optional/test_autoshapes/test_annotated_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def multi_plot_fixture():
fig.add_trace(go.Scatter(x=[], y=[]), row=r, col=c)
return fig


from datetime import datetime, timedelta


def test_add_shape_with_dates():
start_date = datetime(2025, 1, 1)
end_date = datetime(2025, 10, 10)
Expand All @@ -65,7 +68,7 @@ def test_add_shape_with_dates():
data=[go.Scatter(x=[x for x in range(1, 20, 2)], y=dates)],
layout=go.Layout(
title=go.layout.Title(text="A Figure Specified By A Graph Object")
)
),
)
fig.add_vline(x="2025-06-24", annotation_text="test")
assert len(fig.layout.annotations) == 1
Expand Down