A Rust-like result type for Python
A simple Result type for Python 3 inspired by Rust, fully type annotated. The idea is that a result value can be either `Ok(value)` or `Err(error)`, with a way to differentiate between the two. `Ok` and `Err` are both classes encapsulating an arbitrary value. `Result[T, E]` is a generic type alias for `typing.Union[Ok[T], Err[E]]`.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.17.0-3.fc42 | - |
Fedora 42 | 0.17.0-3.fc42 | - |
Fedora 41 | 0.17.0-2.fc41 | - |
Fedora 40 | 0.10.0-5.fc40 | - |
Fedora EPEL 9 | 0.10.0-1.el9 | - |
You can contact the maintainers of this package via email at
python-result dash maintainers at fedoraproject dot org
.