From 9ab6343167a421917ca1c28eb8235b2c33883fee Mon Sep 17 00:00:00 2001 From: parkervg Date: Fri, 19 Jul 2024 13:37:46 -0400 Subject: [PATCH] fix regex type annotation --- blendsql/ingredients/builtin/map/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blendsql/ingredients/builtin/map/main.py b/blendsql/ingredients/builtin/map/main.py index 5340b7c7..9344d4a0 100644 --- a/blendsql/ingredients/builtin/map/main.py +++ b/blendsql/ingredients/builtin/map/main.py @@ -139,7 +139,7 @@ def run( value_limit: Union[int, None] = None, example_outputs: Optional[str] = None, output_type: Optional[str] = None, - regex: Optional[str] = None, + regex: Optional[Callable[[int], str]] = None, table_to_title: Optional[Dict[str, str]] = None, **kwargs, ) -> Iterable[Any]: