diff --git a/rust/src/events/mod.rs b/rust/src/events/mod.rs
index 47293df356..21d56e8e7a 100644
--- a/rust/src/events/mod.rs
+++ b/rust/src/events/mod.rs
@@ -58,6 +58,7 @@ use pyo3::{
wrap_pyfunction, Bound, IntoPyObject, PyAny, PyResult, Python,
};
use pythonize::{depythonize, pythonize};
+use serde_json::Value;
use crate::events::{
constants::event_type::M_ROOM_MEMBER,
@@ -604,8 +605,19 @@ impl Event {
}
}
- #[getter]
- fn redacts<'py>(&self, py: Python<'py>) -> PyResult