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

Method __new__

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

Source from the content-addressed store, hash-verified

9052 __array_priority__ = 101.
9053
9054 def __new__(cls, *args, **kwargs):
9055 return np.array(*args, **kwargs).view(cls)
9056
9057 class Other:
9058 __array_priority__ = 1000.

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected