Skip to content

Commit 2397c51

Browse files
committed
address mypy error
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
1 parent ab8bd85 commit 2397c51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xskillscore/core/probabilistic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
except ImportError:
2929
from scipy.stats import rankdata
3030

31+
# Remove when `numpy` v1.x support is dropped
3132
try:
3233
from numpy import trapezoid
3334
except ImportError:
34-
from numpy import trapz as trapezoid # type: ignore[no-redef]
35+
from numpy import trapz as trapezoid # type: ignore[attr-defined,no-redef]
3536

3637
__all__ = [
3738
"brier_score",

0 commit comments

Comments
 (0)