bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / testing / _dask_wrap
function
scipy._external.array_api_extra.testing:_dask_wrap
source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/testing.py:518
Signature
def _dask_wrap(func: Callable[P, T], n: int) → Callable[P, T]Summary
Wrap func to raise if it attempts to call dask.compute more than n times.
Extended Summary
After the function returns, materialize the graph in order to re-raise exceptions.
Aliases
scipy.differentiate.xpx.testing._dask_wrap