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

Method __ior__

numpy/array_api/_array_object.py:940–948  ·  view source on GitHub ↗

Performs the operation __ior__.

(self: Array, other: Union[int, bool, Array], /)

Source from the content-addressed store, hash-verified

938 return self.__class__._new(res)
939
940 def __ior__(self: Array, other: Union[int, bool, Array], /) -> Array:
941 """
942 Performs the operation __ior__.
943 """
944 other = self._check_allowed_dtypes(other, "integer or boolean", "__ior__")
945 if other is NotImplemented:
946 return other
947 self._array.__ior__(other._array)
948 return self
949
950 def __ror__(self: Array, other: Union[int, bool, Array], /) -> Array:
951 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected