We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f9dfd commit eb8b30cCopy full SHA for eb8b30c
src/array_api_extra/_lib/_funcs.py
@@ -803,19 +803,16 @@ def argpartition( # numpydoc ignore=PR01,RT01
803
return xp.argsort(x, axis=axis, stable=False)
804
805
806
-def isin( # numpydoc ignore=PR01,RT01
+def isin( # numpydoc ignore=PR01,RT01
807
a: Array,
808
b: Array,
809
/,
810
*,
811
assume_unique: bool = False,
812
invert: bool = False,
813
- xp: ModuleType | None = None,
+ xp: ModuleType,
814
) -> Array:
815
"""See docstring in `array_api_extra._delegation.py`."""
816
- if xp is None:
817
- xp = array_namespace(a, b)
818
-
819
original_a_shape = a.shape
820
a = xp.reshape(a, (-1,))
821
b = xp.reshape(b, (-1,))
0 commit comments