pyo3/tests/ui/deprecations.rs
2023-10-10 08:47:03 +01:00

18 lines
205 B
Rust

#![deny(deprecated)]
use pyo3::prelude::*;
#[pyclass]
#[pyo3(text_signature = "()")]
struct MyClass;
#[pymethods]
impl MyClass {
#[__new__]
fn new() -> Self {
Self
}
}
fn main() {}