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

Method __str__

numpy/core/_exceptions.py:45–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.dtypes = tuple(dtypes)
44
45 def __str__(self):
46 return (
47 "ufunc {!r} did not contain a loop with signature matching types "
48 "{!r} -> {!r}"
49 ).format(
50 self.ufunc.__name__,
51 _unpack_tuple(self.dtypes[:self.ufunc.nin]),
52 _unpack_tuple(self.dtypes[self.ufunc.nin:])
53 )
54
55
56@_display_as_base

Callers

nothing calls this directly

Calls 1

_unpack_tupleFunction · 0.70

Tested by

no test coverage detected