mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00: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
|
||||
|
||||
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;
|
||||
|
||||
struct PyArrayDescr_Proxy {
|
||||
|
Loading…
Reference in New Issue
Block a user