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
{{ message }}
This repository was archived by the owner on Jan 31, 2026. It is now read-only.
Support result safe for generator functions. Imagine we have a function that returns a generator of some typical values:
deffunc() ->Iterable[int]:
yieldfromrange(10)
Currently @result.safe_iterate decorator is useless as it won't catch an exception.
It would be better to have @result.safe_iterable decorator that would consider function to return many values and wrap each one into the Result container:
@result.safe_iteratedeffunc() ->Iterable[int]: # after decorator applied signature would be () -> Iterable[Result[int, Exception]]yieldfromrange(10)