pyo3/tests/ui/invalid_pymethod_proto_args_py.rs
2022-03-23 08:07:28 +01:00

14 lines
179 B
Rust

use pyo3::prelude::*;
#[pyclass]
struct MyClass {}
#[pymethods]
impl MyClass {
fn __truediv__(&self, _py: Python<'_>) -> PyResult<()> {
Ok(())
}
}
fn main() {}