Add Python typings for Rust declared types (#7575)

This comes with a bump of the Python version to 3.11
due to the need for typing.Self.
This commit is contained in:
Simon Hausmann 2025-02-09 16:06:34 +01:00 committed by GitHub
parent 30aefd4957
commit 94c655731f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 207 additions and 8 deletions

View file

@ -1,6 +1,8 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
use pyo3_stub_gen::define_stub_info_gatherer;
mod image;
mod interpreter;
use interpreter::{CompilationResult, Compiler, PyDiagnostic, PyDiagnosticLevel, PyValueType};
@ -53,3 +55,5 @@ fn slint(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
Ok(())
}
define_stub_info_gatherer!(stub_info);