Skip to content

Commit

Permalink
Merge branch 'ershi/fix-builtins-string-param' into 'main'
Browse files Browse the repository at this point in the history
Fix infinite recursion when builtin arg is string

See merge request omniverse/warp!776
  • Loading branch information
mmacklin committed Oct 6, 2024
2 parents 55d2512 + e1d0e8f commit 1f4de80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions warp/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,9 @@ def func_match_args(func, arg_types, kwarg_types):


def get_arg_type(arg: Union[Var, Any]):
if isinstance(arg, str):
return str

if isinstance(arg, Sequence):
return tuple(get_arg_type(x) for x in arg)

Expand Down

0 comments on commit 1f4de80

Please sign in to comment.