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

Method __init__

numpy/ma/tests/test_subclassing.py:160–162  ·  view source on GitHub ↗
(self, array, **attrs)

Source from the content-addressed store, hash-verified

158 __array_priority__ = 20
159
160 def __init__(self, array, **attrs):
161 self._array = array
162 self.attrs = attrs
163
164 def __repr__(self):
165 return f"{self.__class__.__name__}(\n{self._array}\n{self.attrs}\n)"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected