noqa can silence all kinds of warnings, and this one too:
noqa
for i in range(5): x = i print(x) # noqa