Result#

class coffea.processor.Result[source]#

Bases: Generic[T]

A Rust-style result type wrapping either a success value or an exception.

Use is_ok() to check the variant, unwrap() to retrieve the value, and exception (on Err) to inspect the error.

See also

Ok

Successful result.

Err

Failed result.

Methods Summary

is_err()

is_ok()

unwrap()

Return the contained value on Ok; on Err re-raise the captured exception.

Methods Documentation

is_err() bool[source]#
is_ok() bool[source]#
unwrap() T[source]#

Return the contained value on Ok; on Err re-raise the captured exception.