diff options
author | Arianna Y <92831762+areveny@users.noreply.github.com> | 2021-10-29 12:44:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 21:44:18 +0200 |
commit | 8c7e2fae6fee28944764e643e65e729a58a5473c (patch) | |
tree | 2dc743324eea667906bcafcc5a313620d40dd8c7 /doc | |
parent | e8713873813bfab5fafb04b0fb8b5221011faa41 (diff) | |
download | pylint-git-8c7e2fae6fee28944764e643e65e729a58a5473c.tar.gz |
Fix incorrect ``consider-using-ternary`` when condition is inferable as False (#5227)
* Fix incorrect ``consider-using-ternary`` when condition is inferrable as False
* Properly infer the condition in old ternary statements and suggest ``simplify-boolean-expression`` over ``consider-using-ternary`` if it is False
Diffstat (limited to 'doc')
-rw-r--r-- | doc/whatsnew/2.12.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/whatsnew/2.12.rst b/doc/whatsnew/2.12.rst index e4bb8ac47..0f16e4bdd 100644 --- a/doc/whatsnew/2.12.rst +++ b/doc/whatsnew/2.12.rst @@ -64,6 +64,10 @@ Extensions Other Changes ============= +* Fix ``simplify-boolean-expression`` when condition can be inferred as False. + + Closes #5200 + * Fix exception when pyreverse parses ``property function`` of a class. * Improve and flatten ``unused-wildcard-import`` message |