Skip to content

Commit

Permalink
try and treat as string
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jan 25, 2025
1 parent 4e8490b commit 8e15be2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pybind11/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,9 @@ struct pyobject_caster<array_t<T, ExtraFlags>> {
return src.inc_ref();
}
PYBIND11_TYPE_CASTER(type,
io_name(const_name("numpy.typing.ArrayLike"),
const_name("numpy.typing.NDArray[")
+ npy_format_descriptor<T>::name + const_name("]")));
io_name("numpy.typing.ArrayLike",
"numpy.typing.NDArray["
+ npy_format_descriptor<T>::name + "]"));
};

template <typename T>
Expand Down

0 comments on commit 8e15be2

Please sign in to comment.