Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types) Numpy.typing.NDArray #5212

Merged
merged 22 commits into from
Feb 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: pre-commit fixes
pre-commit-ci[bot] committed Jan 25, 2025
commit 60081277146d83b94f7dca88e4bdb8a83c48eab0
3 changes: 1 addition & 2 deletions include/pybind11/numpy.h
Original file line number Diff line number Diff line change
@@ -1446,8 +1446,7 @@ struct pyobject_caster<array_t<T, ExtraFlags>> {
}
PYBIND11_TYPE_CASTER(type,
io_name("numpy.typing.ArrayLike",
"numpy.typing.NDArray["
+ npy_format_descriptor<T>::name + "]"));
"numpy.typing.NDArray[" + npy_format_descriptor<T>::name + "]"));
};

template <typename T>