I have imports that have comments inline...mostly for PyCharm inspections. Here's a example:
from foo.bar import baz
# noinspection PyUnresolvedReferences
from pyVmomi import vim, vmodl
import zeb
Assume that example is lines 1-4. I get an I202 error on line 3. When I try to ignore it via # noqa: I202 the I202 then moves to line 4. It looks like the only temporary workaround is to add # noqa: I202 to the first import that report I202 and all that follow. This flags no I202's:
from foo.bar import baz
# noinspection PyUnresolvedReferences
from pyVmomi import vim, vmodl # noqa: I202
import zeb # noqa: I202
I have imports that have comments inline...mostly for PyCharm inspections. Here's a example:
Assume that example is lines 1-4. I get an I202 error on line 3. When I try to ignore it via
# noqa: I202
the I202 then moves to line 4. It looks like the only temporary workaround is to add# noqa: I202
to the first import that report I202 and all that follow. This flags no I202's: