Skip to content

Commit eb8b30c

Browse files
committed
Remove unneeded condition
1 parent 63f9dfd commit eb8b30c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -803,19 +803,16 @@ def argpartition( # numpydoc ignore=PR01,RT01
803803
return xp.argsort(x, axis=axis, stable=False)
804804

805805

806-
def isin( # numpydoc ignore=PR01,RT01
806+
def isin( # numpydoc ignore=PR01,RT01
807807
a: Array,
808808
b: Array,
809809
/,
810810
*,
811811
assume_unique: bool = False,
812812
invert: bool = False,
813-
xp: ModuleType | None = None,
813+
xp: ModuleType,
814814
) -> Array:
815815
"""See docstring in `array_api_extra._delegation.py`."""
816-
if xp is None:
817-
xp = array_namespace(a, b)
818-
819816
original_a_shape = a.shape
820817
a = xp.reshape(a, (-1,))
821818
b = xp.reshape(b, (-1,))

0 commit comments

Comments
 (0)