@@ -57,7 +57,9 @@ def _compare_version(version_a, operator, version_b):
5757
5858
5959###############################################################################
60- # NumPy 2.5 deprecates .shape assignment, but .reshape(copy=False) requires 2.1+
60+ # NumPy 2.5 removes .shape assignment, but .reshape(copy=False) requires 2.1+
61+
62+ # TODO VERSION remove on NumPy 2.1+
6163
6264
6365def _reshape_view (arr , shape ):
@@ -66,10 +68,8 @@ def _reshape_view(arr, shape):
6668 This function provides compatibility across NumPy versions for reshaping
6769 arrays as views. On NumPy >= 2.1, it uses ``reshape(copy=False)`` which
6870 explicitly fails if a view cannot be created. On older versions, it uses
69- direct shape assignment which has the same behavior but is deprecated in
70- NumPy 2.5+.
71-
72- Can be removed once NumPy 2.1 is the minimum supported version.
71+ direct shape assignment which has the same behavior but is being removed
72+ as of NumPy 2.5+.
7373
7474 Parameters
7575 ----------
@@ -765,8 +765,7 @@ def minimum_phase(h, method="homomorphic", n_fft=None, *, half=True):
765765 return h_minimum [:n_out ]
766766
767767
768- # SciPy 1.15 deprecates sph_harm for sph_harm_y and using it will trigger a
769- # DeprecationWarning. This is a backport of the new function for older SciPy versions.
768+ # TODO VERSION SciPy 1.15+ (sph_harm -> sph_harm_y)
770769def sph_harm_y (n , m , theta , phi , * , diff_n = 0 ):
771770 """Wrap scipy.special.sph_harm for sph_harm_y."""
772771 # Can be removed once we no longer support scipy < 1.15.0
0 commit comments