Skip to content

Commit

Permalink
Merge pull request #5101 from chrishavlin/mypy_numpy2_compat_fix
Browse files Browse the repository at this point in the history
TYP: Fix typing in numpy2_compat.py
  • Loading branch information
neutrinoceros authored Jan 25, 2025
2 parents a887cf0 + f3d5fc7 commit b75ef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/_maintenance/numpy2_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# np.trapz is deprecated in numpy 2.0 in favor of np.trapezoid
trapezoid = np.trapezoid
else:
trapezoid = np.trapz # type: ignore [attr-defined] # noqa: NPY201
trapezoid = np.trapz # type: ignore[assignment] # noqa: NPY201

0 comments on commit b75ef98

Please sign in to comment.