From 5d909a5f8167ffa42fd3bfc1d0e79bc126b19145 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 6 Oct 2021 15:41:35 +0200 Subject: [PATCH] Fix: list_generator pass doctests --- mapytex/calculus/random/list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapytex/calculus/random/list.py b/mapytex/calculus/random/list.py index 5ab1e45..a1af58a 100644 --- a/mapytex/calculus/random/list.py +++ b/mapytex/calculus/random/list.py @@ -47,11 +47,11 @@ def list_generator(var_list:list[str], conditions:list[str]=[], global_config:di True >>> c not in [2, 3, 5, 7] True - >>> a, ab, b, c = list_generator(["a", "a*b", "b", "c"], configs={"a": {"rejected": [2, 3, 5, 7]}) + >>> a, ab, b, c = list_generator(["a", "a*b", "b", "c"], configs={"a": {"rejected": [2, 3, 5, 7]}}) >>> a not in [2, 3, 5, 7] True """ rv = extract_letters(var_list) - rv_gen = random_generator(rv, conditions, dict(DEFAUTL_CONFIG, **global_config), variables_scope) + 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]