Python: Make the re-exported classes show up property in the documentation

The variable assignment trick doesn't work for pdoc. Instead, fix the name properly and import them as re-export cleanly.
This commit is contained in:
Simon Hausmann 2025-02-08 23:13:21 +01:00 committed by Simon Hausmann
parent 08fc503f68
commit 74f1674c57
6 changed files with 19 additions and 21 deletions

View file

@ -3,7 +3,7 @@
use pyo3::prelude::*;
#[pyclass(unsendable)]
#[pyclass(unsendable, name = "Image")]
pub struct PyImage {
pub image: slint_interpreter::Image,
}