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

Method __array_priority__

numpy/core/tests/test_multiarray.py:3922–3925  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3920 class BadPriority:
3921 @property
3922 def __array_priority__(self):
3923 if priority == "runtime error":
3924 raise RuntimeError("RuntimeError in __array_priority__!")
3925 return priority
3926
3927 def __radd__(self, other):
3928 return "result"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected