MCPcopy
hub / github.com/dry-python/returns / unwrap

Method unwrap

returns/maybe.py:415–417  ·  view source on GitHub ↗

Returns inner value for successful container.

(self)

Source from the content-addressed store, hash-verified

413 return Maybe.from_optional(function(self._inner_value))
414
415 def unwrap(self):
416 """Returns inner value for successful container."""
417 return self._inner_value
418
419 def map(self, function):
420 """Composes current container with a pure function."""

Callers 15

is_successfulFunction · 0.45
applyMethod · 0.45
result_to_maybeFunction · 0.45
maybe_to_resultFunction · 0.45
test_unwrap_successFunction · 0.45
test_unwrap_failureFunction · 0.45
test_unwrap_successFunction · 0.45
test_unwrap_failureFunction · 0.45

Calls

no outgoing calls