def check_discrete_rvs(vars):
 vars_ = [var for var in vars if (not isinstance(var, pm.model.ObservedRV))]
 if any([(var.dtype in pm.discrete_types) for var in vars_]):
  raise ValueError('Model should not include discrete RVs for ADVI.')

def check_discrete_rvs ( vars ) : vars_ = [ var for var in vars if ( not isinstance ( var , pm . model . ObservedRV ) ) ] if any ( [ ( var . dtype in pm . discrete_types ) for var in vars_ ] ) : raise ValueError ( 'Model should not include discrete RVs for ADVI.' )
check that vars not include discrete variables .