I put a latex math expression in the docstring for a function in Python. It triggers a error "W605 invalid escape sequence" which breaks flake8 checking. How to fix it?
"""
The test function is defined as:
\sin(\pi x)/x
"""
I solved this by using double slashes now.
\\sin(\\pi x)/x
in your string? – Bouton