flake8-mypy icon indicating copy to clipboard operation
flake8-mypy copied to clipboard

Escape file names before them passing into `MYPY_ERROR_TEMPLATE`.

Open mamikonyan opened this issue 7 years ago • 1 comments

Please add a call to re.escape() like so:

MYPY_ERROR_TEMPLATE.format(filename=re.escape(re_filename)),

mamikonyan avatar Apr 26 '18 15:04 mamikonyan

Good call! Could you make a pull request to that effect? I'll happily accept it.

ambv avatar Apr 26 '18 17:04 ambv