diff options
author | Sushobhit <31987769+sushobhit27@users.noreply.github.com> | 2018-08-31 13:40:08 +0530 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-08-31 10:10:08 +0200 |
commit | e3cb6d4a99162497f9a809eb721f7964f4c536ac (patch) | |
tree | 68a641a6717883b61d8b9ae58151fa014f95cf41 /ChangeLog | |
parent | 66cb32187c040f82dd067bc0d226b2f105bf6c38 (diff) | |
download | pylint-git-e3cb6d4a99162497f9a809eb721f7964f4c536ac.tar.gz |
Emit unused-import instead of unused-variable when dealing with unused imports
When pylint encounters unused imports in scopes (e.g. functions),
it used to emit `unused-variable`. This is somewhat confusing, as those
names are not necessarily variables, so instead let's emit the more
obvious `unused-import`.
Close #2421
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,10 @@ What's New in Pylint 2.2? ========================= Release date: TBA + * ``pylint`` used to emit a ``unused-variable`` error if unused import was found in the function. Now instead of + ``unused-variable``, ``unused-import`` is emitted. + + Close #2421 * Handle asyncio.coroutine when looking for ``not-an-iterable`` check. |