Comic books handle it pretty well, I think. A lot of superheroes actually have a sidekick that's an offensive stereotype in their closet. The Green Lantern sidekick, Tom "Pieface" Kalmaku, an Eskimo, is a good example.
The way some later writers handled characters like Pieface was not writing...