mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-27 17:33:16 +08:00
Render pybind11::array as numpy.ndarray in docstrings
This commit is contained in:
parent
57070fb0a0
commit
90d99b56a0
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user