At this point, companies might as well just have an explicit policy of not hiring anyone registered as a Republican. Party affiliation is not a protected class, after all.
As pointed out below, there are some states where politics are protected. I looked it up because I do plan to use that information in hiring decisions going forward. I wouldn't surprised if I get downvoted for this, but I intend to ask anyone I interview in the future (not currently in a role that involves hiring) if they voted for Trump in 2020. And a yes will be a disqualifying answer on the basis of poor judgement…
This would be a very strange question to be asked of an interviewer.
> Yes it means I can't hire employees in California
Per the article I linked to up-thread, it's not just CA:
California, Colorado, Louisiana, Minnesota, Missouri, Nebraska, Nevada, South Carolina, West Virginia, Seattle, Ann Arbor, and Madison.
Maybe you don't care about some of those locations, but CA, CO, and Seattle seem like pretty important ones in the tech world.