unrestraint in subconfig

This commit is contained in:
Emmanuel Garette 2019-08-24 08:14:54 +02:00
parent 82a91db16e
commit c15dac8093

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"""