Skip to content

Commit f4c6a25

Browse files
[simplifiable-if-expression] Add reference to implicit cast to bool in description
1 parent cf2fe9b commit f4c6a25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylint/checkers/refactoring/refactoring_checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ class RefactoringChecker(checkers.BaseTokenChecker):
344344
"R1719": (
345345
"The if expression can be replaced with %s",
346346
"simplifiable-if-expression",
347-
"Used when an if expression can be replaced with 'bool(test)'.",
347+
"Used when an if expression can be replaced with 'bool(test)' "
348+
"or simply 'test' if the boolean cast is implicit.",
348349
),
349350
"R1720": (
350351
'Unnecessary "%s" after "raise", %s',

0 commit comments

Comments
 (0)