From e1d0e8ffc12535cc3e783f4ec4bc07fb018d8c92 Mon Sep 17 00:00:00 2001 From: Eric Shi Date: Fri, 4 Oct 2024 12:59:05 -0700 Subject: [PATCH] Fix infinite recursion when builtin arg is string --- warp/codegen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/warp/codegen.py b/warp/codegen.py index df6fea73..9bb817ad 100644 --- a/warp/codegen.py +++ b/warp/codegen.py @@ -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)