Function update_value

Synopsis

def update_value(self, name, value, config_class)

Description

No description yet.

Source

Lines 67-76 in anyfig/fields.py.

def update_value(self, name, value, config_class):
  # Updates value and return wrapped value or value if setup is finished
  check_type(name, value, self.type_pattern)
  for test in self.tests:
    self._check_test(test, name, value, config_class)
  self.value = value
  return self if self.wrapping_phase else value





Add Discussion as Guest

Log in