@@ -315,7 +315,7 @@ def linalg_lstsq(
315315 xp = array_api_compat .array_namespace (a , b , use_compat = False )
316316
317317 if xp .__name__ in {"numpy" , "jax.numpy" }:
318- return xp .linalg .lstsq (a , b , rcond = rcond ) # type: ignore[no-any-return]
318+ return xp .linalg .lstsq (a , b , rcond = rcond )
319319
320320 if xp .__name__ == "array_api_strict" :
321321 np = import_numpy (xp .__name__ )
@@ -471,13 +471,13 @@ def vectorize(
471471
472472 """
473473 if xp .__name__ == "numpy" :
474- return xp .vectorize (pyfunc , otypes = otypes ) # type: ignore[no-any-return]
474+ return xp .vectorize (pyfunc , otypes = otypes )
475475
476476 if xp .__name__ in {"array_api_strict" , "jax.numpy" }:
477477 # Import here to prevent users relying on numpy unless in this instance
478478 np = import_numpy (xp .__name__ )
479479
480- return np .vectorize (pyfunc , otypes = otypes ) # type: ignore[no-any-return]
480+ return np .vectorize (pyfunc , otypes = otypes )
481481
482482 msg = "the array backend in not supported"
483483 raise NotImplementedError (msg )
@@ -568,11 +568,11 @@ def ndindex(shape: tuple[int, ...], *, xp: ModuleType) -> np.ndindex:
568568
569569 """
570570 if xp .__name__ == "numpy" :
571- return xp .ndindex (shape ) # type: ignore[no-any-return]
571+ return xp .ndindex (shape )
572572
573573 if xp .__name__ in {"array_api_strict" , "jax.numpy" }:
574574 np = import_numpy (xp .__name__ )
575- return np .ndindex (shape ) # type: ignore[no-any-return]
575+ return np .ndindex (shape )
576576
577577 msg = "the array backend in not supported"
578578 raise NotImplementedError (msg )
@@ -607,7 +607,7 @@ def tril_indices(
607607
608608 """
609609 if xp .__name__ in {"numpy" , "jax.numpy" }:
610- return xp .tril_indices (n , k = k , m = m ) # type: ignore[no-any-return]
610+ return xp .tril_indices (n , k = k , m = m )
611611
612612 if xp .__name__ == "array_api_strict" :
613613 np = import_numpy (xp .__name__ )
0 commit comments