Raises an exception, since it does not have a value inside.
(self)
| 394 | return Success(self._inner_value) |
| 395 | |
| 396 | def unwrap(self) -> Never: |
| 397 | """Raises an exception, since it does not have a value inside.""" |
| 398 | if isinstance(self._inner_value, Exception): |
| 399 | raise UnwrapFailedError(self) from self._inner_value |
| 400 | raise UnwrapFailedError(self) |
| 401 | |
| 402 | def failure(self) -> _ErrorType_co: |
| 403 | """Returns failed value.""" |
nothing calls this directly
no test coverage detected