mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 17:37:15 +00:00
Make dtype::num() return type consistent with other functions (#3995)
This commit is contained in:
parent
c5fa3436c6
commit
918892b97e
@ -604,7 +604,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// type number of dtype.
|
/// type number of dtype.
|
||||||
ssize_t num() const {
|
int num() const {
|
||||||
// Note: The signature, `dtype::num` follows the naming of NumPy's public
|
// Note: The signature, `dtype::num` follows the naming of NumPy's public
|
||||||
// Python API (i.e., ``dtype.num``), rather than its internal
|
// Python API (i.e., ``dtype.num``), rather than its internal
|
||||||
// C API (``PyArray_Descr::type_num``).
|
// C API (``PyArray_Descr::type_num``).
|
||||||
|
Loading…
Reference in New Issue
Block a user