MCPcopy
hub / github.com/numpy/numpy / MyClass2

Class MyClass2

numpy/ma/tests/test_core.py:2724–2734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2722
2723 # and that __array_priority__ is respected
2724 class MyClass2:
2725 __array_priority__ = 100
2726
2727 def __mul__(self, other):
2728 return "Me2mul"
2729
2730 def __rmul__(self, other):
2731 return "Me2rmul"
2732
2733 def __rtruediv__(self, other):
2734 return "Me2rdiv"
2735
2736 me_too = MyClass2()
2737 assert_(a.__mul__(me_too) is NotImplemented)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…