mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-13 22:06:29 +00:00
Python: Fix mypy also on the Slint module implementation
This commit is contained in:
parent
607d70b3fa
commit
9001966dc9
6 changed files with 113 additions and 83 deletions
|
@ -6,7 +6,8 @@ use pyo3_stub_gen::{define_stub_info_gatherer, derive::gen_stub_pyfunction};
|
|||
mod image;
|
||||
mod interpreter;
|
||||
use interpreter::{
|
||||
CompilationResult, Compiler, ComponentInstance, PyDiagnostic, PyDiagnosticLevel, PyValueType,
|
||||
CompilationResult, Compiler, ComponentDefinition, ComponentInstance, PyDiagnostic,
|
||||
PyDiagnosticLevel, PyValueType,
|
||||
};
|
||||
mod brush;
|
||||
mod errors;
|
||||
|
@ -45,6 +46,7 @@ fn slint(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|||
m.add_class::<Compiler>()?;
|
||||
m.add_class::<CompilationResult>()?;
|
||||
m.add_class::<ComponentInstance>()?;
|
||||
m.add_class::<ComponentDefinition>()?;
|
||||
m.add_class::<image::PyImage>()?;
|
||||
m.add_class::<PyValueType>()?;
|
||||
m.add_class::<PyDiagnosticLevel>()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue