def rollback(self) -> None:
    'Exit the transaction or savepoint block and rollback changes.'
    if self._managed:
        raise errors.InterfaceError('cannot manually rollback from within a `with` block')
    self._rollback()
Exit the transaction or savepoint block and rollback changes.
def rollback(self) -> None:
    
    if self._managed:
        raise errors.InterfaceError('cannot manually rollback from within a `with` block')
    self._rollback()