Typical MN early responses , no middle ground at all, either "oh its fine no problem: or "absolutely not, never"
I met DH vhen he was 30 and he could not drive. It was a bit irritating which I never hid from him, but in the scheme of things absolutely not a dealbreaker as he had so many other excellent qualities.
Once we had been dating a while ,I did say it would become a problem in the future, particularly if we ended up together long-term with children etc, which he acknowledged and said he was willing to learn. He just never had because of income mainly. His family were not well off and he spent his 20s getting academic qualifications and jobs that were not that well paid. When I met him he had started a new better paid job and within 3 years was department head so he was not unambitious or incapable in fact he is the opposite. He just had not until then prioritised driving
When we had DS and DH wanted to take a sabatical to do a fellowship in the US during my maternity leave, I agreed on the condition he learned learn to drive to share the driving load while there. It took him a while and in the end he passed in an automatic to make sure he had a licence in time . That was 20 years ago . He drives more than I do now, albeit we have an automatic and on the very rare occasion we hire a manual abroad ( because it is a bit cheaper usually) then I drive still but that is really not a big deal for me now.
So as in most relationships that last, we reached a compromise, with some level of irritation and annoyance on the way
Overall then my answer to the question would be it depends on the reason for not driving, his response to my observation that he would probably need to learn if we planned to be together long term and how much I liked him