Etymology
Today it means: A smart aleck or know-it-all. Full definition →
From smart + -y + -pants.
Etymology from Wiktionary, CC BY-SA 4.0.