mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-25 15:24:52 +00:00
Update NDArray[object] to be NDArray[numpy.object_] (#5571)
* fix numpy.object_ * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bb504dd809
commit
6412615ebb
@@ -1521,7 +1521,7 @@ struct npy_format_descriptor<
|
||||
enable_if_t<is_same_ignoring_cvref<T, PyObject *>::value
|
||||
|| ((std::is_same<T, handle>::value || std::is_same<T, object>::value)
|
||||
&& sizeof(T) == sizeof(PyObject *))>> {
|
||||
static constexpr auto name = const_name("object");
|
||||
static constexpr auto name = const_name("numpy.object_");
|
||||
|
||||
static constexpr int value = npy_api::NPY_OBJECT_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user