(self)
| 103 | self.out_i = i |
| 104 | |
| 105 | def __str__(self): |
| 106 | # only show the number if more than one output exists |
| 107 | i_str = "{} ".format(self.out_i) if self.ufunc.nout != 1 else "" |
| 108 | return ( |
| 109 | "Cannot cast ufunc {!r} output {}from {!r} to {!r} with casting " |
| 110 | "rule {!r}" |
| 111 | ).format( |
| 112 | self.ufunc.__name__, i_str, self.from_, self.to, self.casting |
| 113 | ) |
| 114 | |
| 115 | |
| 116 | @_display_as_base |
nothing calls this directly
no outgoing calls
no test coverage detected