Ignoring a line in both flake8 and mypy
This post is over three years old. Some of it may no longer reflect current tooling or my current view.
I needed to tell both flake8 and mypy to ignore the same line of code.
This worked:
from sqlite3.dump import _iterdump as iterdump # type: ignore # noqa: F401
The order here mattered. This did not get picked up by both tools:
# noqa: F401 # type: ignore
But this did:
# type: ignore # noqa: F401