Skip to content

Commit

Permalink
Add Callable type
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Jul 25, 2023
1 parent 3fcf814 commit d16420a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/lpython/lpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def convert_type_to_ctype(arg):
return c_double_complex
elif arg == bool:
return ctypes.c_bool
elif arg == Callable:
return ctypes.PYFUNCTYPE(None)
elif arg is None:
raise NotImplementedError("Type cannot be None")
elif isinstance(arg, Array):
Expand Down

0 comments on commit d16420a

Please sign in to comment.