Better to have asked, "what's it like outside?" or, "what's the weather right now?"
and nobody is going to say it’s not raining when it’s hailing outside… but I understand if that was just a metaphor. You’re probably asking that question to figure out what kind of clothes to wear, and they would probably infer that. It’s so contextual though.
That also depends on the person. With some people open ended questions are great, with others yes/no are better.
I'll also add that yes/no questions are often faster if you get the response you expect.
Is it raining or something else outdoors?
Do you like Vi or Emacs or something else?
Do you want to hang out for a coffee or something else?
For the "Is it raining outside", I honestly don't know anyone that would just tell me "no" when there's hail outside. For the "Do you like Vi or Emacs or something else?", it would be "What text editor/IDE do you use? Why?". "Do you like Vi or Emacs" by itself is not a yes/no question, it's a "what box are you in" question. For "Do you want to hang out for a coffee or something else?", that would be something like "Do you want to hang out at <TIME>?".
An important part for me is that in yes/no questions, no are supposed to be the exception. In my mind, when I ask them, it's not a 50/50 chance. It's more of a 80/20. If it was a 50/50 chance, that means my mental model is not precise enough.