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() {}