(T)ransform Err Convenience function used when working with the TResult type.
(err_msg: str)
| 58 | |
| 59 | |
| 60 | def TErr(err_msg: str) -> Err[CannotTransform]: |
| 61 | """(T)ransform Err |
| 62 | |
| 63 | Convenience function used when working with the TResult type. |
| 64 | """ |
| 65 | cant_transform = CannotTransform(err_msg) |
| 66 | return Err(cant_transform) |
| 67 | |
| 68 | |
| 69 | # Remove when `simplify_power_operator_hugging` becomes stable. |
no test coverage detected