9 times out of ten if I see anyone stopped in mid repair I’ll slow down/stop and ask them if they are ok or if they’ve got everything they need.
The type of bike is generally irrelevant as anybody can forget a pump from time to time. But I do tend to look more kindly on folk with low end bikes, the chances are that they are dipping their toe in the world of cycling and either don’t have the experience to know how to fix a mechanical or don’t realise what repair kit they should probably ride with.
I’ve had people stop for me and although mostly I don’t need the help I do very much appreciate the offer.
[edit] I’ve even had one fella pull his car over at the side of the road and ask if I need a lift to the local bike shop, which although I declined, raised my spirits quite a bit.
Always carry a pump, and a puncture kit as a bare minimum.