def is_pull_request(issue):
 return bool(issue.get('pull_request', {}).get('html_url', None))

def is_pull_request ( issue ) : return bool ( issue . get ( 'pull_request' , { } ) . get ( 'html_url' , None ) )
return true if the given issue is a pull request .