summaryrefslogtreecommitdiff
path: root/doc/whatsnew/2.2.rst
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-08-22 09:33:44 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-08-22 09:33:44 +0200
commit0ba451994767172053251c4cebcc9104d4b77fc6 (patch)
tree77e33f18d8590edea24614c563b667ddf9265e80 /doc/whatsnew/2.2.rst
parentcbc70dc2d86343ba4fba94a6e082abd8bbc9c2c4 (diff)
downloadpylint-git-0ba451994767172053251c4cebcc9104d4b77fc6.tar.gz
Pick the latest value from the inferred values when looking for ``raising-non-exception``
Close #2431
Diffstat (limited to 'doc/whatsnew/2.2.rst')
-rw-r--r--doc/whatsnew/2.2.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/whatsnew/2.2.rst b/doc/whatsnew/2.2.rst
index 4d9305758..f8c1bd64e 100644
--- a/doc/whatsnew/2.2.rst
+++ b/doc/whatsnew/2.2.rst
@@ -24,3 +24,10 @@ Other Changes
* Fix false positive ``undefined-variable`` and ``used-before-assignment`` with nonlocal keyword usage.
* Fix exceptions being raised when one of the params is not a ClassDef for :func:`checkers.utils.is_subclass_of`.
+
+* ``pylint`` now picks the latest value from the inferred values of the exception that gets
+ raised, when looking for ``raising-non-exception``. This helps when reusing a variable name
+ for multiple types, since ``pylint`` was picking just the first inferred value, leading
+ to spurious false positives.
+
+ Close #2431 \ No newline at end of file