module documentation

Undocumented

Class Err A value that signifies failure and which stores arbitrary data for the error.
Class Ok A value that indicates success and which stores arbitrary data for the return value.
Exception DoExceptionError This is used to signal to do() that the result is an Err, which short-circuits the generator and returns that Err. Using this exception for control flow in do() allows us to simulate and_then() in the Err case: namely, we don't call ...
Exception UnwrapError Exception raised from .unwrap_<...> and .expect_<...> calls.
Type Variable E_co Undocumented
Type Variable T_co Undocumented
Type Alias Result A type to use in isinstance checks. This is purely for convenience sake, as you could also just write isinstance(res, (Ok, Err))
E_co =

Undocumented

Value
TypeVar('E_co',
        covariant=True)
T_co =

Undocumented

Value
TypeVar('T_co',
        covariant=True)
Result: TypeAlias =

A type to use in isinstance checks. This is purely for convenience sake, as you could also just write isinstance(res, (Ok, Err))

Value
Ok[T_co] | Err[E_co]