MCPcopy
hub / github.com/numpy/numpy / __add__

Method __add__

numpy/ma/tests/test_subclassing.py:44–47  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

42 self.info = getattr(obj, 'info', {}).copy()
43
44 def __add__(self, other):
45 result = super().__add__(other)
46 result.info['added'] = result.info.get('added', 0) + 1
47 return result
48
49 def __iadd__(self, other):
50 result = super().__iadd__(other)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected