Since 3.0.0, pybind11 produces numpy annotations with typing.Annotated:
- numpy.ndarray[numpy.float64[m, 3]])
+ typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 3]"])
This change was introduced in pybind/pybind11#5212. This breaks the option numpy-array-use-type-var of pybind11-stubgen, which now silently outputs the same as numpy-array-wrap-with-annotated. See PR #263 to track fixes.