A Rust-like result type for Python
48.62 KB
built 2026-10-17 13:18:37 GMT
Description
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]]`.
Dependencies
15 totalRequires14
- (python3dist(tomli) if python3-devel < 3.11)
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(pytest)
- python3dist(pytest-asyncio)
- python3dist(setuptools)
- python3dist(wheel)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
Provides1
- python3-result = 0.17.0-11.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
3Name ![]() |
Size |
|---|---|
| python-result.spec | 4.16 KB |
| result-0.17.0.tar.gz | 21.76 KB |
| result-no-cov.diff | 337.00 B |
Files 1–3 of 3
Component of
buildroots that installed this RPMNo Buildroots
