Skip to content

Commit d88f5c2

Browse files
committed
Tidy CABI, remove wrong type annotations
1 parent a246a0a commit d88f5c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

design/mvp/canonical-abi/definitions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ class CallContext:
280280
class CanonicalOptions:
281281
memory: Optional[bytearray] = None
282282
string_encoding: Optional[str] = None
283-
realloc: Optional[Callable[[int,int,int,int],int]] = None
284-
post_return: Optional[Callable[[],None]] = None
283+
realloc: Optional[Callable] = None
284+
post_return: Optional[Callable] = None
285285

286286
class ComponentInstance:
287287
# core module instance state
@@ -314,7 +314,7 @@ def remove(self, rt, i):
314314

315315
class ResourceType(Type):
316316
impl: ComponentInstance
317-
dtor: Optional[Callable[[int],None]]
317+
dtor: Optional[Callable]
318318

319319
def __init__(self, impl, dtor = None):
320320
self.impl = impl

0 commit comments

Comments
 (0)