diff --git a/aesara/tensor/random/basic.py b/aesara/tensor/random/basic.py index f5f08bfde2..3692a5d75a 100644 --- a/aesara/tensor/random/basic.py +++ b/aesara/tensor/random/basic.py @@ -378,7 +378,7 @@ def _shape_from_params(self, dist_params, rep_param_idx=1, param_shapes=None): multinomial = MultinomialRV() -vsearchsorted = np.vectorize(np.searchsorted, otypes=[np.int], signature="(n),()->()") +vsearchsorted = np.vectorize(np.searchsorted, otypes=[int], signature="(n),()->()") class CategoricalRV(RandomVariable): diff --git a/tests/tensor/test_type.py b/tests/tensor/test_type.py index 2f39b08459..369782cd33 100644 --- a/tests/tensor/test_type.py +++ b/tests/tensor/test_type.py @@ -46,7 +46,7 @@ def test_filter_float_subclass(): test_type = TensorType("float64", broadcastable=[]) nan = np.array([np.nan], dtype="float64")[0] - assert isinstance(nan, np.float) and not isinstance(nan, np.ndarray) + assert isinstance(nan, float) and not isinstance(nan, np.ndarray) filtered_nan = test_type.filter(nan) assert isinstance(filtered_nan, np.ndarray)