You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, thanks for this implementation! In my fork of your repo (has a couple of things that would break compatibility in your repo, hence didn't put up a PR and released separately) is one helpful utility that can be simply dropped into your repo.
It's a decorator wraps ordinary functions and makes them return Ok(...) for normal return values, or Err(...) for raised Exceptions. Let me know if you're interested and I'll happily open a PR for it.
The text was updated successfully, but these errors were encountered:
Hey Felix,
I feel like I've seen something like this somewhere (pretty sure it's this https://github.com/dry-python/returns#maybe-container -- ctrl-f to search for @maybe).
Thanks for bringing it up, I'll have a closer look when I get more time.
Hi folks,
first of all, thanks for this implementation! In my fork of your repo (has a couple of things that would break compatibility in your repo, hence didn't put up a PR and released separately) is one helpful utility that can be simply dropped into your repo.
https://github.com/felixhammerl/resultify/blob/master/resultify/__init__.py#L102-L115
It's a decorator wraps ordinary functions and makes them return Ok(...) for normal return values, or Err(...) for raised Exceptions. Let me know if you're interested and I'll happily open a PR for it.
The text was updated successfully, but these errors were encountered: