Skip to content

Commit

Permalink
update the ignored mypy error code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Jan 23, 2025
1 parent a887cf0 commit f3d5fc7
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 f3d5fc7

Please sign in to comment.