In the political side for nonprofits, there are clear rules of what you can do or not do. So a nonprofit with the goal of getting people to vote should not lean left or right.
In the one I volunteered at a decade ago for gay rights, each volunteer had to sign that they are simply pushing the issue forward, not promoting a particular politician or party. It was pretty freaking clear what party we were aligned with, but we couldn’t actively tell people to go vote for X or Y, only that here’s what party X has shared about the issue, while party Y hasn’t given us any comment about it.