Make dtype::num() return type consistent with other functions (#3995)

This commit is contained in:
Maarten Baert 2022-06-07 01:41:38 +02:00 committed by GitHub
parent c5fa3436c6
commit 918892b97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,7 +604,7 @@ public:
}
/// type number of dtype.
ssize_t num() const {
int num() const {
// Note: The signature, `dtype::num` follows the naming of NumPy's public
// Python API (i.e., ``dtype.num``), rather than its internal
// C API (``PyArray_Descr::type_num``).