Attribute Macro pyo3_stub_gen_derive::gen_stub_pyclass_enum
source ยท #[gen_stub_pyclass_enum]
Expand description
Embed metadata for Python stub file generation for #[pyclass]
macro with enum
#[pyo3_stub_gen_derive::gen_stub_pyclass_enum]
#[pyo3::pyclass(module = "my_module", name = "DataType")]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum PyDataType {
#[pyo3(name = "FLOAT")]
Float,
#[pyo3(name = "INTEGER")]
Integer,
}