use pyo3::prelude::*; #[pyclass] struct ClassWithGenerics { a: A, } #[pyclass] struct ClassWithLifetimes<'a> { a: &'a str, } fn main() {}