Skip to content

typing

Shared numeric array type aliases (VecN, MatN) used across trendify.plotting/ trendify.styling for fields like Trace2D.x/Trace2D.y and HistogramStyle.bins. Backed by numpydantic.NDArray for runtime pydantic validation, with a plain TypeAlias swapped in under TYPE_CHECKING so static type checkers see an ordinary array/list/tuple union instead of numpydantic's shape-annotated generic.

VecN

Python
VecN = _VecBase

An N-element numeric array of arbitrary length.

MatN

Python
MatN = _VecBase

An NxN numeric matrix of arbitrary length.