From b43c64fc7ef7fc91ebb9b982e4ee8435b0eae1dd Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 9 Oct 2021 08:32:00 +0200 Subject: [PATCH] Feat: rename var_list to template --- mapytex/calculus/random/list.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mapytex/calculus/random/list.py b/mapytex/calculus/random/list.py index acdfb69..551f4d7 100644 --- a/mapytex/calculus/random/list.py +++ b/mapytex/calculus/random/list.py @@ -19,7 +19,7 @@ DEFAUTL_CONFIG = { def list_generator( - var_list: list[str], + template: list[str], conditions: list[str] = [], global_config: dict = {}, configs: dict = {}, @@ -56,9 +56,9 @@ def list_generator( >>> a not in [2, 3, 5, 7] True """ - rv = extract_letters(var_list) + rv = extract_letters(template) rv_gen = random_generator( rv, conditions, dict(DEFAUTL_CONFIG, **global_config), configs ) - generated = eval_words(var_list, rv_gen) - return [generated[v] for v in var_list] + generated = eval_words(template, rv_gen) + return [generated[v] for v in template]