pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.57k stars 2.09k forks source link

tests: remove `np.int_` #4867

Closed mtsokol closed 1 year ago

mtsokol commented 1 year ago

Hi! This PR addresses changes that will be shipped in https://github.com/numpy/numpy/pull/24794 - deprecation of np.int_ and np.uint. Instead of np.int_ an np.long is being introduced to match C type names.

np.int_ could be potentially replaced by np.intp but it would differ on windows 64bit (hopefully it will be solved once this PR gets merged).

Here I replaced np.int_ with np.dtype(int) as it's backward compatible way for defining a "default" integer dtype.