pyo3/tests/ui/invalid_pyclass_enum.rs

19 lines
194 B
Rust

use pyo3::prelude::*;
#[pyclass(subclass)]
enum NotBaseClass {
X,
Y,
}
#[pyclass(extends = PyList)]
enum NotDrivedClass {
X,
Y,
}
#[pyclass]
enum NoEmptyEnum {}
fn main() {}