diff options
author | Arun Isaac | 2022-09-16 15:39:28 +0530 |
---|---|---|
committer | Arun Isaac | 2022-09-16 15:39:28 +0530 |
commit | 0ac7b18c846fe8df134a2241bb0163e9fd4b7633 (patch) | |
tree | 1f16385c317507fc6b9be9f2a6ebde045f1ebb4a /wqflask/utility | |
parent | 635682c9d206cd9ae6ea184f9361937b0a272b90 (diff) | |
download | genenetwork2-0ac7b18c846fe8df134a2241bb0163e9fd4b7633.tar.gz |
Initialize empty MonadicDict by default.
* wqflask/utility/monads.py (MonadicDict)[__init__]: Set default
dictionary argument to the empty dictionary.
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/monads.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |