Maher has been calling himself a libertarian for a long time. Back when Larry Elder still had his radio show, Elder had Maher on and called him out on it, and compared libertarian doctrine with Maher's own words. Larry Elder destroyed Maher and IIRC Maher hung up on the interview and would not come back on Elder's show.
When Larry switched parties from Libertarian to Republican, I REALLY loved him!