From d6d2321ad9770e63a6abea9b9bac625cf96c32ab Mon Sep 17 00:00:00 2001 From: Patricia Roman Sanchez Date: Tue, 8 Oct 2024 14:19:04 +0200 Subject: [PATCH] Fix linter issues --- toolium/utils/dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolium/utils/dataset.py b/toolium/utils/dataset.py index e70ac727..77dceffa 100644 --- a/toolium/utils/dataset.py +++ b/toolium/utils/dataset.py @@ -84,7 +84,7 @@ def replace_param(param, language='es', infer_param_type=True): [STR:xxxx] Cast xxxx to a string [INT:xxxx] Cast xxxx to an int [FLOAT:xxxx] Cast xxxx to a float - [ROUND:xxxx::d] String float with the expected decimals + [ROUND:xxxx::y] Generates a string from a float number (xxxx) with the indicated number of decimals (y) [LIST:xxxx] Cast xxxx to a list [DICT:xxxx] Cast xxxx to a dict [UPPER:xxxx] Converts xxxx to upper case @@ -222,6 +222,7 @@ def _replace_param_replacement(param, language): param_replaced = True return new_param, param_replaced + def _get_rounded_float_number(param): """ Round float number with the expected decimals