From e3ec06aa5a23670af2d920bcf9c2bc0b7367e2ad Mon Sep 17 00:00:00 2001 From: Louis Mandel Date: Thu, 18 Sep 2025 15:54:17 -0400 Subject: [PATCH] fix: return the value not the future when a closure is called fro jinja or python Signed-off-by: Louis Mandel --- src/pdl/pdl_interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdl/pdl_interpreter.py b/src/pdl/pdl_interpreter.py index 01e7ea4c4..168e781eb 100644 --- a/src/pdl/pdl_interpreter.py +++ b/src/pdl/pdl_interpreter.py @@ -233,7 +233,7 @@ def __call__(self, *args, **kwargs): result, _, _ = execute_call( state, current_context, self, kwargs, self.pdl__location ) - return result + return result.result() ClosureBlock.model_rebuild()