Ever received a lot of items you cannot use from chests and mobs?

I was thinking about this idea, and think it would make the game better. This may of been suggested, but I really love the idea!

My pet and I often pick up loot that we cannot equip. I am a warrior, and I get rogue loot, which I immediately sell.

There is a very odd chance that I get warrior loot, and to sort this out, I think there should be an option or the ability to ignore loot that is not for your class, meaning if a drop dropped that you cannot use, it will not let your pet or you pick it up, so only you can pick that loot up.

Please let me know if you like the idea or not, and I will get back to you!

Thank ya'll for reading!