unrestraint in subconfig

This commit is contained in:
Emmanuel Garette 2019-08-24 08:14:54 +02:00
parent 82a91db16e
commit c15dac8093
1 changed files with 6 additions and 0 deletions

View File

@ -1536,6 +1536,12 @@ class TiramisuDispatcherOption(TiramisuDispatcher, TiramisuContextOption):
subconfig, subconfig,
self._config_bag) self._config_bag)
def __getattr__(self, subfunc: str) -> Any:
if subfunc == 'unrestraint':
config_bag = self._config_bag.copy()
config_bag.unrestraint()
return TiramisuDispatcherOption(config_bag)
class Config(TiramisuAPI): class Config(TiramisuAPI):
"""Root config object that enables us to handle the configuration options""" """Root config object that enables us to handle the configuration options"""