Skip to content

Commit d16420a

Browse files
committed
Add Callable type
1 parent 3fcf814 commit d16420a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/lpython/lpython.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def convert_type_to_ctype(arg):
287287
return c_double_complex
288288
elif arg == bool:
289289
return ctypes.c_bool
290+
elif arg == Callable:
291+
return ctypes.PYFUNCTYPE(None)
290292
elif arg is None:
291293
raise NotImplementedError("Type cannot be None")
292294
elif isinstance(arg, Array):

0 commit comments

Comments
 (0)