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 /doc/whatsnew/2.2.rst | |
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 'doc/whatsnew/2.2.rst')
-rw-r--r-- | doc/whatsnew/2.2.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/whatsnew/2.2.rst b/doc/whatsnew/2.2.rst index 5f429e321..209c7162b 100644 --- a/doc/whatsnew/2.2.rst +++ b/doc/whatsnew/2.2.rst @@ -36,3 +36,8 @@ Other Changes with ``asyncio.coroutine``. This is no longer the case as we handle coroutines explicitly. Close #996 + +* ``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 |