def _branch_url(self, branch_id: str):
    base_url = self._repo_base('branch')
    branch_id = urlparse.quote(branch_id)
    return f'{base_url}/branch/{branch_id}'
def _branch_url(self, branch_id: str):
    base_url = self._repo_base('branch')
    branch_id = urlparse.quote(branch_id)
    return f'{base_url}/branch/{branch_id}'