Skip to content

Commit b6c7917

Browse files
authored
[NFC] wasmstdlib.py: fix Python typing error (#83125)
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]" ```
1 parent 57dd4ce commit b6c7917

File tree

1 file changed

+1
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/products/wasmstdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def test(self, host_target):
236236
}
237237
self.test_with_cmake(None, [test_target], self._build_variant, [], test_env=env)
238238

239-
def should_test_executable(self):
239+
def should_test_executable(self) -> bool:
240240
return True
241241

242242
@property

0 commit comments

Comments
 (0)