From a993e44371ada4ae0c592058bd98f1c61342c04f Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Wed, 17 Aug 2022 23:41:48 -0700 Subject: [PATCH] More new config bugs: needs to support a .get() method... doh. --- config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.py b/config.py index a83433c..c883a3b 100644 --- a/config.py +++ b/config.py @@ -234,6 +234,9 @@ class Config: def __contains__(self, key: str) -> bool: return key in self.config + def get(self, key: str, default: Any = None) -> Optional[Any]: + return self.config.get(key, default) + @staticmethod def add_commandline_args(title: str, description: str = "") -> argparse._ArgumentGroup: """Create a new context for arguments and return a handle. -- 2.45.0