From f3d5fc7e90e767bb1df17a9fe817197b92c1070f Mon Sep 17 00:00:00 2001 From: chavlin Date: Thu, 23 Jan 2025 11:40:41 -0600 Subject: [PATCH] update the ignored mypy error code --- yt/_maintenance/numpy2_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/_maintenance/numpy2_compat.py b/yt/_maintenance/numpy2_compat.py index 32331b122e7..88bedd0d0e4 100644 --- a/yt/_maintenance/numpy2_compat.py +++ b/yt/_maintenance/numpy2_compat.py @@ -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