From b58e6b2c19c91e33dffa1eeda49141142c7f04bd Mon Sep 17 00:00:00 2001 From: Kalle Westerling Date: Wed, 11 Sep 2024 16:29:35 +0100 Subject: [PATCH] Adding in DotDict as a type (setting up for constants) --- seshat/apps/global_types.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 seshat/apps/global_types.py diff --git a/seshat/apps/global_types.py b/seshat/apps/global_types.py new file mode 100644 index 000000000..0fd5b0977 --- /dev/null +++ b/seshat/apps/global_types.py @@ -0,0 +1,4 @@ +class DotDict(dict): + __getattr__ = dict.get + __setattr__ = dict.__setitem__ + __delattr__ = dict.__delitem__