slint/tests
Simon Hausmann 16ceb115a1
slint-compiler: Add support for generating Python stubs (#10123)
The generated file offers the following two pieces of functionality:

- Convenient front-end to slint.load_file() by loading the .slint file
  (replaces use of auto-loader)
- More importantly: Type information for exported properties, callbacks,
  functions, and globals

On loading, the previously generated API is compared to what's in the
.slint file and if the .slint file was changed in an incompatible way,
an exception is thrown.

A Python test driver is added which performs three steps with each test
case:

1. Generate python stubs and checks that they can be loaded with the
python interpreter and that `uv ty check` passes.
2. Extract expected python API out of pyi sections and compares them.
3. Appends any python code from python sections and runs them (this is
combined with step 1)

Fixes #4136
2025-11-20 17:17:01 +01:00
..
cases slint-compiler: Add support for generating Python stubs (#10123) 2025-11-20 17:17:01 +01:00
doctests material: change doc examples to import from @material 2025-09-24 18:19:39 +02:00
driver slint-compiler: Add support for generating Python stubs (#10123) 2025-11-20 17:17:01 +01:00
helper_components Fix order of exports when adding implicit export 2024-10-25 12:10:40 +02:00
manual Bump version number to 1.15.0 2025-10-24 14:28:17 +00:00
screenshots slint-compiler: Add support for generating Python stubs (#10123) 2025-11-20 17:17:01 +01:00