mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-16 02:27:14 +00:00
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:
parent
30aefd4957
commit
94c655731f
11 changed files with 207 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue