use remove_warnings
This commit is contained in:
parent
ef66d487b7
commit
fee8997f13
|
@ -504,7 +504,7 @@ class _TiramisuOptionValueOptionDescription:
|
||||||
config_bag = self._option_bag.config_bag
|
config_bag = self._option_bag.config_bag
|
||||||
if config_bag.properties and 'warnings' in config_bag.properties:
|
if config_bag.properties and 'warnings' in config_bag.properties:
|
||||||
config_bag = config_bag.copy()
|
config_bag = config_bag.copy()
|
||||||
config_bag.properties = config_bag.properties - {'warnings'}
|
config_bag.remove_warnings()
|
||||||
return subconfig.make_dict(config_bag=config_bag,
|
return subconfig.make_dict(config_bag=config_bag,
|
||||||
flatten=flatten,
|
flatten=flatten,
|
||||||
fullpath=fullpath,
|
fullpath=fullpath,
|
||||||
|
@ -810,11 +810,10 @@ class TiramisuContextValue(TiramisuContext):
|
||||||
withoption=None,
|
withoption=None,
|
||||||
fullpath=False):
|
fullpath=False):
|
||||||
"""Dict with path as key and value"""
|
"""Dict with path as key and value"""
|
||||||
if not self._config_bag.properties:
|
config_bag = self._config_bag
|
||||||
config_bag = self._config_bag
|
if config_bag.properties and 'warnings' in config_bag.properties:
|
||||||
else:
|
|
||||||
config_bag = self._config_bag.copy()
|
config_bag = self._config_bag.copy()
|
||||||
config_bag.properties = self._config_bag.properties - {'warnings'}
|
config_bag.remove_warnings()
|
||||||
return config_bag.context.make_dict(config_bag,
|
return config_bag.context.make_dict(config_bag,
|
||||||
flatten=flatten,
|
flatten=flatten,
|
||||||
fullpath=fullpath,
|
fullpath=fullpath,
|
||||||
|
@ -1063,7 +1062,7 @@ class TiramisuContextOption(TiramisuContext):
|
||||||
config_bag = self._config_bag
|
config_bag = self._config_bag
|
||||||
if config_bag.properties and 'warnings' in config_bag.properties:
|
if config_bag.properties and 'warnings' in config_bag.properties:
|
||||||
config_bag = config_bag.copy()
|
config_bag = config_bag.copy()
|
||||||
config_bag.properties = config_bag.properties - {'warnings'}
|
config_bag.remove_warnings()
|
||||||
option = config_bag.context.cfgimpl_get_description()
|
option = config_bag.context.cfgimpl_get_description()
|
||||||
for toption in self._walk(option,
|
for toption in self._walk(option,
|
||||||
recursive,
|
recursive,
|
||||||
|
|
Loading…
Reference in New Issue