def _cluster_has_pending_steps(steps):
 return any(((step.status.state == 'PENDING') for step in steps))

def _cluster_has_pending_steps ( steps ) : return any ( ( ( step . status . state == 'PENDING' ) for step in steps ) )
does *cluster* have any steps in the pending state? .