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

Method __str__

numpy/array_api/_array_object.py:96–100  ·  view source on GitHub ↗

Performs the operation __str__.

(self: Array, /)

Source from the content-addressed store, hash-verified

94 # the sake of usability.
95
96 def __str__(self: Array, /) -> str:
97 """
98 Performs the operation __str__.
99 """
100 return self._array.__str__().replace("array", "Array")
101
102 def __repr__(self: Array, /) -> str:
103 """

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected