Render pybind11::array as numpy.ndarray in docstrings

This commit is contained in:
Sergei Izmailov 2020-05-20 12:42:07 +03:00 committed by Wenzel Jakob
parent 57070fb0a0
commit 90d99b56a0

View File

@ -40,6 +40,9 @@ NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
class array; // Forward declaration class array; // Forward declaration
NAMESPACE_BEGIN(detail) NAMESPACE_BEGIN(detail)
template <> struct handle_type_name<array> { static constexpr auto name = _("numpy.ndarray"); };
template <typename type, typename SFINAE = void> struct npy_format_descriptor; template <typename type, typename SFINAE = void> struct npy_format_descriptor;
struct PyArrayDescr_Proxy { struct PyArrayDescr_Proxy {