Python: Add more type stubs to the internal Rust API

This commit is contained in:
Simon Hausmann 2025-02-12 11:32:26 +01:00 committed by Simon Hausmann
parent 7c75720c9a
commit c111098e49
4 changed files with 29 additions and 1 deletions

View file

@ -6,6 +6,7 @@ use std::collections::HashMap;
use std::path::PathBuf;
use std::rc::Rc;
use pyo3_stub_gen::derive::gen_stub_pyclass_enum;
use slint_interpreter::{ComponentHandle, Value};
use i_slint_compiler::langtype::Type;
@ -244,6 +245,7 @@ impl ComponentDefinition {
}
}
#[gen_stub_pyclass_enum]
#[pyclass(name = "ValueType")]
pub enum PyValueType {
Void,