def commit(self) -> None:
    for field in self.fields:
        field.commit()
    self._trace = self._next_trace
    self._next_trace = []
def commit(self) -> None:
    for field in self.fields:
        field.commit()
    self._trace = self._next_trace
    self._next_trace = []