From 290eabe7e4daa55f523e31b0c22ac097385e01a8 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 17 Jul 2025 12:47:01 +0100 Subject: [PATCH] [NFC] wasmstdlib.py: fix Python typing error Fix type error in `should_test_executable`: ``` reportIncompatibleMethodOverride: Method "should_test_executable" overrides class "WasmStdlib" in an incompatible manner Return type mismatch: base method returns type "Literal[True]", override returns type "Literal[False]" "Literal[False]" is not assignable to type "Literal[True]" ``` --- .../swift_build_support/products/wasmstdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/swift_build_support/swift_build_support/products/wasmstdlib.py b/utils/swift_build_support/swift_build_support/products/wasmstdlib.py index 64516ad59293f..3c00373bf770e 100644 --- a/utils/swift_build_support/swift_build_support/products/wasmstdlib.py +++ b/utils/swift_build_support/swift_build_support/products/wasmstdlib.py @@ -236,7 +236,7 @@ def test(self, host_target): } self.test_with_cmake(None, [test_target], self._build_variant, [], test_env=env) - def should_test_executable(self): + def should_test_executable(self) -> bool: return True @property