Where I live the only time we are asked for party affiliation is for the primaries, so we get the correct ballot. They NEVER ask for party affiliation for the general election.
I’m glad they’re asking. If the vote count skews too far dem and a good number of reps have turned out, the poll watchers will know something fishy is going on.