diff --git a/rusty_results/prelude.py b/rusty_results/prelude.py index 8437100..f8a33a4 100644 --- a/rusty_results/prelude.py +++ b/rusty_results/prelude.py @@ -527,7 +527,6 @@ def transpose(self) -> "Result[Option[T], E]": return Ok(self) def early_return(self) -> T: - # it is safe to unwrap here as we know we are some raise EarlyReturnException(self) def __bool__(self) -> bool: @@ -942,6 +941,7 @@ def transpose(self) -> Option["Result[T, E]"]: return cast(Option, self.unwrap()).map(Ok) def early_return(self) -> T: + # safe to unwrap here as we know it is Ok return self.unwrap() def __repr__(self):