MCPcopy Index your code
hub / github.com/numpy/numpy / __add__

Method __add__

numpy/_core/tests/test_function_base.py:41–43  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

39 return float.__new__(cls, value)
40
41 def __add__(self, x):
42 assert_(isinstance(x, PhysicalQuantity))
43 return PhysicalQuantity(float(x) + float(self))
44 __radd__ = __add__
45
46 def __sub__(self, x):

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected