On a couple of occasions recently, Codacy (via pylint) has reported errors which I cannot reproduce locally. I suspect this is due to the diff that codacy produces.
On one occasion the error raised was:
Unused NativeRange imported from datatypes
NativeRange was no longer imported or used anywhere in the file.
I managed to get the expected result by adding the import back on that line and then removing it again.
The import was originally removed here, and the error began to appear at this commit
The import was originally added in this PR so
NativeRange also did not appear in the
diff tab on codacy. I can only guess that the incremental diff fed to pylint was not large enough for pylint to recognise that the problem had been resolved (the import was done over multiple lines, which may have had an impact)