def all_continuous(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_]):
  return False
 else:
  return True

def all_continuous ( 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_ ] ) : return False else : return True
check that vars not include discrete variables .