':type transaction: Transaction'

def update(self, transaction):

    assert isinstance(transaction, Transaction), type(transaction)
    self._logger.debug((('Transaction    with    the    id:    ' + str(transaction.transaction_id)) + '    was    updated    to    the    transaction    repository'))
    self._transactions[transaction.transaction_id] = transaction
