From 76c93bd884365bef5988019130f434f6359d539e Mon Sep 17 00:00:00 2001 From: Antonio Paolillo Date: Sun, 1 Feb 2026 14:17:27 +0100 Subject: [PATCH] Fix string mapping in ugly-to-pretty conversion Signed-off-by: Antonio Paolillo --- benchkit/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchkit/benchmark.py b/benchkit/benchmark.py index 5fa6ba81..a34e1e70 100644 --- a/benchkit/benchmark.py +++ b/benchkit/benchmark.py @@ -929,7 +929,7 @@ def _update_pretty_variables(self, experiment_results: Dict[str, Any]): experiment_results[ugly2pretty] = ugly_var_value continue - if isinstance(ugly_var_value, Sequence): + if isinstance(ugly_var_value, Sequence) and not isinstance(ugly_var_value, str): ugly_var_value = ugly_var_value[0] pretty_var_value = ugly2pretty.get(ugly_var_value, ugly_var_value)