Aw, lots of people in ST were racist, or specie-ist.
How many times does someone remark "Typical Klingon, always yadda yadda yadda" or "That would be the Romulan way of..." or "Leave it to the Ferengi to..." or "Only a Vulcan would do something something".
No one seems to mind generalizing entire races. But use that same language when talking about Irish or Japanese or Jews or Africans or French or Hindus or any other human group...
If you think about it, every race/species in Trek is stereotyped, as in known for a particular way of acting, thinking, behaving, doing things, etc.