pyo3/tests/ui/deprecations.rs

18 lines
205 B
Rust
Raw Normal View History

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