From c15dac80936bbfb033df17294fa3cf4420f91c4d Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 24 Aug 2019 08:14:54 +0200 Subject: [PATCH] unrestraint in subconfig --- tiramisu/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tiramisu/api.py b/tiramisu/api.py index c62451e..baf4115 100644 --- a/tiramisu/api.py +++ b/tiramisu/api.py @@ -1536,6 +1536,12 @@ class TiramisuDispatcherOption(TiramisuDispatcher, TiramisuContextOption): subconfig, 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): """Root config object that enables us to handle the configuration options"""