(self, axis, ndim=None, msg_prefix=None)
| 163 | __slots__ = ("axis", "ndim", "_msg") |
| 164 | |
| 165 | def __init__(self, axis, ndim=None, msg_prefix=None): |
| 166 | if ndim is msg_prefix is None: |
| 167 | # single-argument form: directly set the error message |
| 168 | self._msg = axis |
| 169 | self.axis = None |
| 170 | self.ndim = None |
| 171 | else: |
| 172 | self._msg = msg_prefix |
| 173 | self.axis = axis |
| 174 | self.ndim = ndim |
| 175 | |
| 176 | def __str__(self): |
| 177 | axis = self.axis |
nothing calls this directly
no outgoing calls
no test coverage detected