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

Method __init__

numpy/ma/tests/test_subclassing.py:378–380  ·  view source on GitHub ↗
(self, data, units)

Source from the content-addressed store, hash-verified

376class ArrayNoInheritance:
377 """Quantity-like class that does not inherit from ndarray"""
378 def __init__(self, data, units):
379 self.magnitude = data
380 self.units = units
381
382 def __getattr__(self, attr):
383 return getattr(self.magnitude, attr)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected