Skip to content

Commit 0013acd

Browse files
committed
Add typo in CABI Python
1 parent 8daf12a commit 0013acd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

design/mvp/canonical-abi/definitions.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,14 @@ class CanonicalOptions:
304304
#
305305

306306
class ComponentInstance:
307-
may_leave = True
308-
may_enter = True
307+
may_leave: bool
308+
may_enter: bool
309309
handles: HandleTable
310310

311311
def __init__(self):
312-
handles = HandleTable()
312+
self.may_leave = True
313+
self.may_enter = True
314+
self.handles = HandleTable()
313315

314316
#
315317

design/mvp/canonical-abi/run_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def mk_cx(memory = bytearray(), encoding = 'utf8', realloc = None, post_return =
4040
cx.opts.realloc = realloc
4141
cx.opts.post_return = post_return
4242
cx.inst = ComponentInstance()
43-
cx.inst.handles = HandleTable()
4443
cx.call = Call()
4544
cx.called_as_export = True
4645
return cx

0 commit comments

Comments
 (0)