Skip to content

Commit b75ef98

Browse files
Merge pull request #5101 from chrishavlin/mypy_numpy2_compat_fix
TYP: Fix typing in numpy2_compat.py
2 parents a887cf0 + f3d5fc7 commit b75ef98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yt/_maintenance/numpy2_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# np.trapz is deprecated in numpy 2.0 in favor of np.trapezoid
77
trapezoid = np.trapezoid
88
else:
9-
trapezoid = np.trapz # type: ignore [attr-defined] # noqa: NPY201
9+
trapezoid = np.trapz # type: ignore[assignment] # noqa: NPY201

0 commit comments

Comments
 (0)