From facc603157c274d8ce1b9eb722a25a2a4b25c8c3 Mon Sep 17 00:00:00 2001 From: Jianfeng Mao <4297243+jmao-denver@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:01:26 -0700 Subject: [PATCH] Call inspect.signature with eval_str=True (#5033) --- py/server/deephaven/_udf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/server/deephaven/_udf.py b/py/server/deephaven/_udf.py index 3ec5b93f95a..4eef4bd697b 100644 --- a/py/server/deephaven/_udf.py +++ b/py/server/deephaven/_udf.py @@ -232,7 +232,7 @@ def _parse_signature(fn: Callable) -> _ParsedSignature: return _parse_np_ufunc_signature(fn) else: p_sig = _ParsedSignature(fn=fn) - sig = inspect.signature(fn) + sig = inspect.signature(fn, eval_str=True) for n, p in sig.parameters.items(): p_sig.params.append(_parse_param_annotation(p.annotation))