The syntax for disabling multiple warnings in one line is too strict
mikhaildubov opened this issue · comments
As of now, the # noqa: ...
statement disables only the first warning when the corresponding codes are separated by ', '
(with a space), e.g. the following will only disable Q440
:
# noqa: Q440, Q447, Q448, Q449
-- which might be confusing if you don't know that spaces are not allowed (they probably should be). The following still disables all the warnings:
# noqa: Q440,Q447,Q448,Q449
This is something that is fixed in flake8, recently, so presumably on that release you can use spaces.