From 0ac7b18c846fe8df134a2241bb0163e9fd4b7633 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 16 Sep 2022 15:39:28 +0530 Subject: Initialize empty MonadicDict by default. * wqflask/utility/monads.py (MonadicDict)[__init__]: Set default dictionary argument to the empty dictionary. --- wqflask/utility/monads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/utility/monads.py b/wqflask/utility/monads.py index fbcb2c23..d683b0ae 100644 --- a/wqflask/utility/monads.py +++ b/wqflask/utility/monads.py @@ -21,7 +21,7 @@ class MonadicDict(UserDict): Keys in this dictionary can be any python object, but values must be monadic values. """ - def __init__(self, d, convert=True): + def __init__(self, d={}, convert=True): """ Initialize monadic dictionary. -- cgit v1.2.3