summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSushobhit <31987769+sushobhit27@users.noreply.github.com>2018-08-31 13:40:08 +0530
committerClaudiu Popa <pcmanticore@gmail.com>2018-08-31 10:10:08 +0200
commite3cb6d4a99162497f9a809eb721f7964f4c536ac (patch)
tree68a641a6717883b61d8b9ae58151fa014f95cf41 /ChangeLog
parent66cb32187c040f82dd067bc0d226b2f105bf6c38 (diff)
downloadpylint-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--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c340f8db2..92cbdcf43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.