config: add _set_option() method to ConfigurableObject
This commit is contained in:
parent
25cdf9d4dc
commit
e368521a96
1 changed files with 4 additions and 0 deletions
|
@ -1296,6 +1296,10 @@ class ConfigurableObject:
|
||||||
|
|
||||||
return default if default is not None else self._defaults.get(option)
|
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):
|
def set_default(self, option, default_value):
|
||||||
"""Set option default value"""
|
"""Set option default value"""
|
||||||
assert option in self._defaults, f"Unkown option {option}"
|
assert option in self._defaults, f"Unkown option {option}"
|
||||||
|
|
Loading…
Reference in a new issue