@@ -233,8 +233,8 @@ immediates that can be passed to the `canon` definition being implemented.
233
233
class CanonicalOptions :
234
234
memory: Optional[bytearray ] = None
235
235
string_encoding: Optional[str ] = None
236
- realloc: Optional[Callable[[ int , int , int , int ], int ] ] = None
237
- post_return: Optional[Callable[[], None ] ] = None
236
+ realloc: Optional[Callable] = None
237
+ post_return: Optional[Callable] = None
238
238
```
239
239
240
240
The ` inst ` field of ` CallContext ` points to the component instance which the
@@ -296,7 +296,7 @@ corresponds to resource type equality, as defined by [type checking] rules.
296
296
``` python
297
297
class ResourceType (Type ):
298
298
impl: ComponentInstance
299
- dtor: Optional[Callable[[ int ], None ] ]
299
+ dtor: Optional[Callable]
300
300
301
301
def __init__ (self , impl , dtor = None ):
302
302
self .impl = impl
@@ -431,7 +431,6 @@ class ImportCall(CallContext):
431
431
lenders: list[HandleElem]
432
432
433
433
def __init__ (self , opts , inst ):
434
- assert (inst.entered)
435
434
super ().__init__ (opts, inst)
436
435
self .lenders = []
437
436
@@ -441,7 +440,6 @@ class ImportCall(CallContext):
441
440
self .lenders.append(lending_handle)
442
441
443
442
def exit (self ):
444
- assert (self .inst.entered)
445
443
for h in self .lenders:
446
444
h.lend_count -= 1
447
445
```
0 commit comments