parameters: (self, values)
return_statement: return res
docstring: Make sure to have a pending_msg set.
docstring_summary: Make sure to have a pending_msg set.
docstring_tokens: Make sure to have a pending_msg set .
function: def write(self, values):
          """ Make sure to have a pending_msg set. """
          # This is done here and not in a default to have access to all required values.
          res = super().write(values)
          self._transfer_ensure_pending_msg_is_set()
          return res
function_tokens: def write ( self , values ) : # This is done here and not in a default to have access to all required values. res = super ( ) . write ( values ) self . _transfer_ensure_pending_msg_is_set ( ) return res