Tuesday’s municipal election ended in a Democratic sweep of all four open spots on Pennsylvania’s appellate bench, including a victory from Superior Court Judge Daniel McCaffery in an unusually heated race for the state’s highest court.

According to court watchers, the result is an unsurprising effect of election messaging that placed politics at the forefront.