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