We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1be99 commit b59299dCopy full SHA for b59299d
include/pybind11/numpy.h
@@ -513,7 +513,7 @@ class dtype : public object {
513
}
514
515
/// Single-character for dtype's type (ex: float is 'f' and double 'd')
516
- char type() const {
+ char char_() const {
517
return detail::array_descriptor_proxy(m_ptr)->type;
518
519
tests/test_numpy_dtypes.cpp
@@ -278,7 +278,7 @@ py::list test_dtype_type() {
278
py::dtype("float64"), // double
279
py::dtype("float128") // long double
280
}) {
281
- list.append(dt.type());
+ list.append(dt.char_());
282
283
return list;
284
0 commit comments