There was a change in behavior of E402, see: https://gitlab.com/pycqa/flake8/-/issues/638#note_345108633