Python: run mypy on the tests

This commit is contained in:
Simon Hausmann 2025-02-12 16:28:26 +01:00 committed by Simon Hausmann
parent c111098e49
commit 607d70b3fa
21 changed files with 169 additions and 69 deletions

View file

@ -6,7 +6,7 @@ from slint import slint as native
from slint.slint import ValueType
def test_basic_compiler():
def test_basic_compiler() -> None:
compiler = native.Compiler()
assert compiler.include_paths == []
@ -66,7 +66,7 @@ def test_basic_compiler():
assert instance != None
def test_compiler_build_from_path():
def test_compiler_build_from_path() -> None:
compiler = native.Compiler()
result = compiler.build_from_path("Nonexistent.slint")