(py: Python<'_>, value: &impl Serialize)
| 220 | } |
| 221 | |
| 222 | fn to_python(py: Python<'_>, value: &impl Serialize) -> PyResult<Py<PyAny>> { |
| 223 | let value = |
| 224 | serde_json::to_value(value).map_err(|error| PyValueError::new_err(error.to_string()))?; |
| 225 | value_to_python(py, &value) |
| 226 | } |
| 227 | |
| 228 | #[pyfunction] |
| 229 | fn set_stats_route_label(ctx: &Bound<'_, PyAny>, label: &str) -> PyResult<()> { |
no test coverage detected