Skip to content

Commit 671a157

Browse files
committed
Add stacklevel to a warning
Original NumPy Commit: 091503004547842796bc617f156373c1ed5082ab
1 parent 0391975 commit 671a157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_strict/_dtypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def __eq__(self, other):
2525
"""You are comparing a array_api_strict dtype against \
2626
a NumPy native dtype object, but you probably don't want to do this. \
2727
array_api_strict dtype objects compare unequal to their NumPy equivalents. \
28-
Such cross-library comparison is not supported by the standard."""
29-
)
28+
Such cross-library comparison is not supported by the standard.""",
29+
stacklevel=2)
3030
if not isinstance(other, _DType):
3131
return NotImplemented
3232
return self._np_dtype == other._np_dtype

0 commit comments

Comments
 (0)