Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b933d58

Browse files
committed
ci
1 parent af6d777 commit b933d58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numpy/lib/_stride_tricks_impl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def as_strided(x, shape=None, strides=None, subok=False, writeable=True):
104104
# dtypes. Since dtype should remain unchanged, we set it explicitly.
105105
with warnings.catch_warnings():
106106
# gh-28901
107-
warnings.filterwarnings("ignore", category=DeprecationWarning)
107+
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
108108
array.dtype = x.dtype
109109

110110
view = _maybe_view_as_subclass(x, array)

numpy/ma/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3494,7 +3494,7 @@ def dtype(self):
34943494
def dtype(self, dtype):
34953495
with warnings.catch_warnings():
34963496
# gh-28901
3497-
warnings.filterwarnings("ignore", category=DeprecationWarning)
3497+
warnings.filterwarnings(action="ignore", category=DeprecationWarning, stacklevel=1)
34983498
super(MaskedArray, type(self)).dtype.__set__(self, dtype)
34993499
if self._mask is not nomask:
35003500
self._mask = self._mask.view(make_mask_descr(dtype), ndarray)

0 commit comments

Comments
 (0)