pyo3/tests/ui/too_many_args_to_getter.rs

15 lines
177 B
Rust
Raw Normal View History

use pyo3::prelude::*;
#[pyclass]
struct ClassWithGetter {
a: u32,
}
#[pymethods]
impl ClassWithGetter {
#[getter]
fn get_num(&self, index: u32) {}
}
fn main() {}