Skip to content

Commit

Permalink
[simplifiable-if-expression] Add reference to implicit cast to bool i…
Browse files Browse the repository at this point in the history
…n description
  • Loading branch information
Pierre-Sassoulas committed May 11, 2022
1 parent efec69c commit 1c90bde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylint/checkers/refactoring/refactoring_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ class RefactoringChecker(checkers.BaseTokenChecker):
"R1719": (
"The if expression can be replaced with %s",
"simplifiable-if-expression",
"Used when an if expression can be replaced with 'bool(test)'.",
"Used when an if expression can be replaced with 'bool(test)' "
"or simply 'test' if the boolean cast is implicit.",
),
"R1720": (
'Unnecessary "%s" after "raise", %s',
Expand Down

0 comments on commit 1c90bde

Please sign in to comment.