result icon indicating copy to clipboard operation
result copied to clipboard

feat: add overload to unwrap_or_raise to raise the exception itself

Open mokeyish opened this issue 7 months ago • 5 comments

add overload to unwrap_or_raise to raise the exception itself

   n2 = Err(ValueError('nay'))
   with pytest.raises(ValueError) as exc_info:
        n2.unwrap_or_raise()

mokeyish avatar Jul 23 '24 08:07 mokeyish