File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
api/python/slint/tests/codegen Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,10 @@ jobs:
205205 uses : astral-sh/setup-uv@v7
206206 - name : Run python tests
207207 working-directory : api/python/slint
208- run : |
209- uv venv --python 3.12
210- uv sync
211- uv run maturin develop --release
208+ run :
212209 uv run pytest tests
210+ env :
211+ MATURIN_PEP517_ARGS : " --profile=dev"
213212 - name : tmate session if tests fail
214213 if : failure()
215214 uses : mxschmitt/action-tmate@v3
Original file line number Diff line number Diff line change 1010import subprocess
1111import sys
1212from pathlib import Path
13+ from typing import Any
1314
1415import pytest
1516from slint .codegen .cli import _parse_library_paths
@@ -100,12 +101,12 @@ def _write_optional_fixture(target_dir: Path) -> Path:
100101 return slint_file
101102
102103
103- def _load_module (module_path : Path ):
104+ def _load_module (module_path : Path ) -> Any :
104105 spec = importlib .util .spec_from_file_location ("generated_module" , module_path )
105106 assert spec and spec .loader
106107 module = importlib .util .module_from_spec (spec )
107108 sys .modules .pop ("generated_module" , None )
108- spec .loader .exec_module (module ) # type: ignore[assignment]
109+ spec .loader .exec_module (module )
109110 return module
110111
111112
You can’t perform that action at this time.
0 commit comments