has_dependency only for validator

This commit is contained in:
Emmanuel Garette 2018-07-24 23:25:29 +02:00
parent e3be95a274
commit acdddcfe9c
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ class Base(object):
self._has_calc_context = True
elif isinstance(param, ParamOption):
param.option._add_dependency(self)
self._has_dependency = True
if type_ == 'validator':
self._has_dependency = True
is_multi = self.impl_is_dynoptiondescription() or self.impl_is_multi()
func_args, func_kwargs, func_positional, func_keyword = self._get_function_args(calculator)
calculator_args, calculator_kwargs = self._get_parameters_args(calculator_params, add_value)