Skip to content

Commit 528a11e

Browse files
committed
WIP
1 parent c7f226c commit 528a11e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

wasmtime/_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def data(self) -> typing.Optional[typing.Any]:
4343
"""
4444
data = _bindings.wasmtime_context_get_data(self._context())
4545
if data:
46-
return value._unintern(data)
46+
# TODO https://github.com/bytecodealliance/wasmtime-py/issues/303
47+
return value._unintern(data) # type: ignore
4748
else:
4849
return None
4950

wasmtime/_value.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def _from_raw(cls, store: 'Storelike', raw: _bindings.wasmtime_val_t, owned: boo
181181
elif raw.kind == _ffi.WASMTIME_EXTERNREF.value:
182182
if raw.of.externref:
183183
extern_id = _bindings.wasmtime_externref_data(store._context(), raw.of.externref)
184-
val = _unintern(extern_id)
184+
# TODO https://github.com/bytecodealliance/wasmtime-py/issues/303
185+
val = _unintern(extern_id) # type: ignore
185186
elif raw.kind == _ffi.WASMTIME_FUNCREF.value:
186187
if raw.of.funcref.store_id != 0:
187188
val = wasmtime.Func._from_raw(raw.of.funcref)

0 commit comments

Comments
 (0)