async def modify_issue(self, number: int, labels: Optional[List[str]]=None, title: Optional[str]=None, body: Optional[str]=None) -> Dict[(Any, Any)]:
    'Modify existing issue (PRs are issues)\n\n        Arguments:\n          labels: list of labels to assign to issue\n          title: new title\n          body: new body\n        '
    var_data = copy(self.var_default)
    var_data['number'] = str(number)
    data: Dict[(str, Any)] = {}
    if labels:
        data['labels'] = labels
    if title:
        data['title'] = title
    if body:
        data['body'] = body
    if self.dry_run:
        logger.info('Would modify PR %s', number)
        if title:
            logger.info('New title: %s', title)
        if labels:
            logger.info('New labels: %s', labels)
        if body:
            logger.info('New Body:\n%s\n', body)
        return {'number': number}
    logger.info('Modifying PR %s', number)
    return (await self.api.patch(self.ISSUES, var_data, data=data))
Modify existing issue (PRs are issues)

Arguments:
  labels: list of labels to assign to issue
  title: new title
  body: new body
async def modify_issue(self, number: int, labels: Optional[List[str]]=None, title: Optional[str]=None, body: Optional[str]=None) -> Dict[(Any, Any)]:
    'Modify existing issue (PRs are issues)\n\n        Arguments:\n          labels: list of labels to assign to issue\n          title: new title\n          body: new body\n        '
    var_data = copy(self.var_default)
    var_data['number'] = str(number)
    data: Dict[(str, Any)] = {}
    if labels:
        data['labels'] = labels
    if title:
        data['title'] = title
    if body:
        data['body'] = body
    if self.dry_run:
        logger.info('Would modify PR %s', number)
        if title:
            logger.info('New title: %s', title)
        if labels:
            logger.info('New labels: %s', labels)
        if body:
            logger.info('New Body:\n%s\n', body)
        return {'number': number}
    logger.info('Modifying PR %s', number)
    return (await self.api.patch(self.ISSUES, var_data, data=data))