Function finish_wrapping_phase

Synopsis

def finish_wrapping_phase(self, name, config_class)

Description

No description yet.

Source

Lines 77-85 in anyfig/fields.py.

def finish_wrapping_phase(self, name, config_class):
  # Verifies that attribute is overridden and finishes setup
  inner_key = name.split('.')[-1]
  err_msg = f"The field '{inner_key}' in '{config_class}' is required to be overridden"
  assert hasattr(self, 'value'), err_msg
  self.wrapping_phase = False
  return self.value





Add Discussion as Guest

Log in