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

Method __new__

numpy/core/tests/test_multiarray.py:9048–9049  ·  view source on GitHub ↗
(cls, *args, **kwargs)

Source from the content-addressed store, hash-verified

9046 __array_priority__ = 100.
9047
9048 def __new__(cls, *args, **kwargs):
9049 return np.array(*args, **kwargs).view(cls)
9050
9051 class Bar(np.ndarray):
9052 __array_priority__ = 101.

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected