From e368521a960a5637cd7f1c52b3e091bfee91a273 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 3 Jan 2024 15:12:52 +0100 Subject: [PATCH] config: add _set_option() method to ConfigurableObject --- mylib/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mylib/config.py b/mylib/config.py index 0b4a39e..de4e939 100644 --- a/mylib/config.py +++ b/mylib/config.py @@ -1296,6 +1296,10 @@ class ConfigurableObject: return default if default is not None else self._defaults.get(option) + def _set_option(self, option, value): + """Set option value""" + self._kwargs[option] = value + def set_default(self, option, default_value): """Set option default value""" assert option in self._defaults, f"Unkown option {option}"