pyo3/tests/ui/deprecations.rs

17 lines
174 B
Rust

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