Sometimes it's helpful to explicitly type something as one of the result variants. This can help identify weird typing errors using inferred types. Note: Also consider how to fix the weird inferred typing errors or make a note about that in the README.