diff --git a/examples/simd_i8x16.py b/examples/simd_i8x16.py index 407836b5..ae0fef3a 100644 --- a/examples/simd_i8x16.py +++ b/examples/simd_i8x16.py @@ -31,6 +31,6 @@ 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 print([v for v in c]) print([v for v in c] == [i + j for i, j in zip(a, b)]) diff --git a/tests/test_func.py b/tests/test_func.py index 799a6246..2d8e4160 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: list[int] = add_v128(a, b) # type: ignore + 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 82de44d0..b73b662a 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 # type: ignore + 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 7fc3e7d3..703ba0c8 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)] # type: ignore + 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]: