(value: &str)
| 4460 | } |
| 4461 | |
| 4462 | fn parse_py_timeout_action(value: &str) -> PyResult<RustTimeoutAction> { |
| 4463 | match value.trim().to_ascii_lowercase().replace('-', "_").as_str() { |
| 4464 | "reject" => Ok(RustTimeoutAction::Reject), |
| 4465 | "auto_approve" | "autoapprove" => Ok(RustTimeoutAction::AutoApprove), |
| 4466 | other => Err(PyValueError::new_err(format!( |
| 4467 | "timeout_action must be 'reject' or 'auto_approve', got {other:?}" |
| 4468 | ))), |
| 4469 | } |
| 4470 | } |
| 4471 | |
| 4472 | fn py_confirmation_policy_to_rust( |
| 4473 | policy: PyConfirmationPolicy, |
no test coverage detected