@requires_segment_info
def last_pipe_status(pl, segment_info):
 last_pipe_status = segment_info[u'args'].last_pipe_status
 if any(last_pipe_status):
  return [{u'contents': str(status), u'highlight_groups': [(u'exit_fail' if status else u'exit_success')], u'draw_inner_divider': True} for status in last_pipe_status]
 else:
  return None

@ requires_segment_info def last_pipe_status ( pl , segment_info ) : last_pipe_status = segment_info [ u'args' ] . last_pipe_status if any ( last_pipe_status ) : return [ { u'contents' : str ( status ) , u'highlight_groups' : [ ( u'exit_fail' if status else u'exit_success' ) ] , u'draw_inner_divider' : True } for status in last_pipe_status ] else : return None
return last pipe status .