diff --git a/tests/test_func.py b/tests/test_func.py index 478c68db..799a6246 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -44,7 +44,7 @@ def test_simd_i8x16_add(self): add_v128 = partial(add_v128_f, store) a = vector_type(*(i for i in range(16))) b = vector_type(*(40 + i for i in range(16))) - c = add_v128(a, b) + c: list[int] = add_v128(a, b) # type: ignore self.assertEqual([v for v in c], [i + j for i, j in zip(a, b)]) def test_calls(self): diff --git a/wasmtime/_types.py b/wasmtime/_types.py index e2d1d82c..82de44d0 100644 --- a/wasmtime/_types.py +++ b/wasmtime/_types.py @@ -81,7 +81,7 @@ def __str__(self) -> str: return 'anyref' if kind == ffi.WASM_FUNCREF.value: return 'funcref' - return 'ValType(%d)' % kind + return 'ValType(%d)' % kind # type: ignore def __del__(self) -> None: if not hasattr(self, '_owner') or not hasattr(self, '_ptr'): diff --git a/wasmtime/_value.py b/wasmtime/_value.py index 5ac78e3b..7fc3e7d3 100644 --- a/wasmtime/_value.py +++ b/wasmtime/_value.py @@ -38,7 +38,7 @@ def _unintern(val: int) -> typing.Any: def get_valtype_attr(ty: ValType) -> str: - return val_id2attr[wasm_valtype_kind(ty._ptr)] + return val_id2attr[wasm_valtype_kind(ty._ptr)] # type: ignore def val_getter(store_id: int, val_raw: wasmtime_val_raw_t, attr: str) -> typing.Union[int, float, "wasmtime.Func", typing.Any]: