async def create_pr(self, title: str, from_branch: Optional[str]=None, from_user: Optional[str]=None, to_branch: Optional[str]='master', body: Optional[str]=None, maintainer_can_modify: bool=True) -> Dict[(Any, Any)]:
    'Create new PR\n\n        Arguments:\n          title: Title of new PR\n          from_branch: Name of branch from which PR asks to pull\n          from_user: Name of user/org in from which to pull\n          to_branch: Name of branch into which to pull (default: master)\n          body: Body text of PR\n          maintainer_can_modify: Whether to allow maintainer to modify from_branch\n        '
    var_data = copy(self.var_default)
    if (not from_user):
        from_user = self.username
    data: Dict[(str, Any)] = {'title': title, 'body': '', 'maintainer_can_modify': maintainer_can_modify}
    if body:
        data['body'] += body
    if from_branch:
        if (from_user and (from_user != self.username)):
            data['head'] = f'{from_user}:{from_branch}'
        else:
            data['head'] = from_branch
    if to_branch:
        data['base'] = to_branch
    logger.debug('PR data %s', data)
    if self.dry_run:
        logger.info("Would create PR '%s'", title)
        return {'number': (- 1)}
    logger.info("Creating PR '%s'", title)
    return (await self.api.post(self.PULLS, var_data, data=data))
Create new PR

Arguments:
  title: Title of new PR
  from_branch: Name of branch from which PR asks to pull
  from_user: Name of user/org in from which to pull
  to_branch: Name of branch into which to pull (default: master)
  body: Body text of PR
  maintainer_can_modify: Whether to allow maintainer to modify from_branch
async def create_pr(self, title: str, from_branch: Optional[str]=None, from_user: Optional[str]=None, to_branch: Optional[str]='master', body: Optional[str]=None, maintainer_can_modify: bool=True) -> Dict[(Any, Any)]:
    'Create new PR\n\n        Arguments:\n          title: Title of new PR\n          from_branch: Name of branch from which PR asks to pull\n          from_user: Name of user/org in from which to pull\n          to_branch: Name of branch into which to pull (default: master)\n          body: Body text of PR\n          maintainer_can_modify: Whether to allow maintainer to modify from_branch\n        '
    var_data = copy(self.var_default)
    if (not from_user):
        from_user = self.username
    data: Dict[(str, Any)] = {'title': title, 'body': , 'maintainer_can_modify': maintainer_can_modify}
    if body:
        data['body'] += body
    if from_branch:
        if (from_user and (from_user != self.username)):
            data['head'] = f'{from_user}:{from_branch}'
        else:
            data['head'] = from_branch
    if to_branch:
        data['base'] = to_branch
    logger.debug('PR data %s', data)
    if self.dry_run:
        logger.info("Would create PR '%s'", title)
        return {'number': (- 1)}
    logger.info("Creating PR '%s'", title)
    return (await self.api.post(self.PULLS, var_data, data=data))