MCPcopy Index your code
hub / github.com/dry-python/returns / unwrap

Method unwrap

returns/maybe.py:376–378  ·  view source on GitHub ↗

Raises an exception, since it does not have a value inside.

(self)

Source from the content-addressed store, hash-verified

374 return function()
375
376 def unwrap(self):
377 """Raises an exception, since it does not have a value inside."""
378 raise UnwrapFailedError(self)
379
380 def failure(self) -> None:
381 """Returns failed value."""

Callers

nothing calls this directly

Calls 1

UnwrapFailedErrorClass · 0.90

Tested by

no test coverage detected