The docstring machinery won't complain. There's a preference to have as little LaTeX as possible and keep docstrings readable in a terminal, maybe it was about that. In this case it's still understandable though (at least for me), so I don't really mind.