def accept(self, remove_branch=False, sha=None, merge_when_pipeline_succeeds=True):
    return self._api.call(PUT('/projects/{0.project_id}/merge_requests/{0.iid}/merge'.format(self), dict(should_remove_source_branch=remove_branch, merge_when_pipeline_succeeds=merge_when_pipeline_succeeds, sha=(sha or self.sha))))
def accept(self, remove_branch=False, sha=None, merge_when_pipeline_succeeds=True):
    return self._api.call(PUT('/projects/{0.project_id}/merge_requests/{0.iid}/merge'.format(self), dict(should_remove_source_branch=remove_branch, merge_when_pipeline_succeeds=merge_when_pipeline_succeeds, sha=(sha or self.sha))))