8000 py38 compat · Coding-with-Adam/plotly.py@ba09922 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba09922

Browse files
committed
py38 compat
1 parent 0916930 commit ba09922

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/python/plotly/plotly/tests/test_optional/test_px/test_px_functions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,16 +571,15 @@ def test_timeline(constructor):
571571
["Finish"],
572572
],
573573
)
574-
def test_timeline_cols_already_temporal(constructor, datetime_columns: list[str]):
574+
def test_timeline_cols_already_temporal(constructor, datetime_columns):
575575
# https://github.com/plotly/plotly.py/issues/4913
576576
data = {
577577
"Task": ["Job A", "Job B", "Job C"],
578578
"Start": ["2009-01-01", "2009-03-05", "2009-02-20"],
579579
"Finish": ["2009-02-28", "2009-04-15", "2009-05-30"],
580580
}
581-
df = constructor(data)
582581
df = (
583-
nw.from_native(df)
582+
nw.from_native(constructor(data))
584583
.with_columns(nw.col(datetime_columns).str.to_datetime(format="%Y-%m-%d"))
585584
.to_native()
586585
)

0 commit comments

Comments
 (0)
0