MCPcopy Create free account
hub / github.com/numpy/numpy / _sometrue_dispatcher

Function _sometrue_dispatcher

numpy/core/fromnumeric.py:3872–3878  ·  view source on GitHub ↗
(a, axis=None, out=None, keepdims=None, *,
                         where=np._NoValue)

Source from the content-addressed store, hash-verified

3870
3871
3872def _sometrue_dispatcher(a, axis=None, out=None, keepdims=None, *,
3873 where=np._NoValue):
3874 # 2023-03-02, 1.25.0
3875 warnings.warn("`sometrue` is deprecated as of NumPy 1.25.0, and will be "
3876 "removed in NumPy 2.0. Please use `any` instead.",
3877 DeprecationWarning, stacklevel=3)
3878 return (a, where, out)
3879
3880
3881@array_function_dispatch(_sometrue_dispatcher, verify=False)

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected