Skip to content

Commit

Permalink
Make dtype::num() return type consistent with other functions (#3995)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenBaert authored Jun 6, 2022
1 parent c5fa343 commit 918892b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class dtype : public object {
}

/// 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``).
Expand Down

0 comments on commit 918892b

Please sign in to comment.