diff --git a/eppo_core/src/attributes.rs b/eppo_core/src/attributes.rs index 1fac02fd..ee5d0eea 100644 --- a/eppo_core/src/attributes.rs +++ b/eppo_core/src/attributes.rs @@ -115,7 +115,7 @@ mod pyo3_impl { return Ok(AttributeValue::Boolean(s.is_true())); } if let Ok(s) = value.downcast::() { - return Ok(AttributeValue::Number(s.extract()?)); + return Ok(AttributeValue::Number(s.value())); } if let Ok(s) = value.downcast::() { return Ok(AttributeValue::Number(s.extract()?));