diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 85e1f58d32..24d366633a 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1445,9 +1445,9 @@ struct pyobject_caster> { return src.inc_ref(); } PYBIND11_TYPE_CASTER(type, - io_name(const_name("numpy.typing.ArrayLike]"), + io_name("numpy.typing.ArrayLike", const_name("numpy.typing.NDArray[") - + npy_format_descriptor::name + const_name("]"))); + + npy_format_descriptor::name + const_name("]"))); }; template