And I was talking about “Hogwarts teachers aren’t married”. That’s a “rule” that is stupid.
There's nothing that says that. The teachers' private lives are not discussed, by and large. We don't know if, say, Flitwick is married or not.