Skip to content

Commit 342d8bb

Browse files
FBumannclaude
andcommitted
fix: satisfy strict mypy with parameterized NDArray annotation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 901a4bc commit 342d8bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xarray_plotly/figures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from collections.abc import Iterator
1414

1515
import numpy as np
16+
import numpy.typing as npt
1617
import plotly.graph_objects as go
1718

1819
from xarray_plotly.common import FacetTitlesMode
@@ -114,7 +115,7 @@ def _ensure_legend_visibility(
114115
setattr(frame_trace, attr, src_val)
115116

116117

117-
def _numeric_values(vals: Any) -> np.ndarray | None:
118+
def _numeric_values(vals: Any) -> npt.NDArray[np.float64] | None:
118119
"""Convert trace data to a 1-D float array, or None if not numeric.
119120
120121
Datetime/timedelta and categorical (string) data return None — those

0 commit comments

Comments
 (0)