@@ -918,16 +918,16 @@ Refactoring checker Messages
918918 Emitted when a single "return" or "return None" statement is found at the end
919919 of function or method definition. This statement can safely be removed
920920 because Python will implicitly return None
921- :use-implicit-booleaness-not-comparison-to-string (C1804): *"%s" can be simplified to "%s", if it is striclty a string, as an empty string is falsey *
922- Empty string are considered false in a boolean context. Following this check
923- blindly in weakly typed code base can create hard to debug issues. If the
924- value can be something else that is falsey but not a string (for example
925- ``None ``, an empty sequence, or ``0 ``) the code will not be equivalent.
926921:use-implicit-booleaness-not-comparison (C1803): *"%s" can be simplified to "%s", if it is strictly a sequence, as an empty %s is falsey *
927922 Empty sequences are considered false in a boolean context. Following this
928923 check blindly in weakly typed code base can create hard to debug issues. If
929924 the value can be something else that is falsey but not a sequence (for
930925 example ``None ``, an empty string, or ``0 ``) the code will not be equivalent.
926+ :use-implicit-booleaness-not-comparison-to-string (C1804): *"%s" can be simplified to "%s", if it is strictly a string, as an empty string is falsey *
927+ Empty string are considered false in a boolean context. Following this check
928+ blindly in weakly typed code base can create hard to debug issues. If the
929+ value can be something else that is falsey but not a string (for example
930+ ``None ``, an empty sequence, or ``0 ``) the code will not be equivalent.
931931:use-implicit-booleaness-not-comparison-to-zero (C1805): *"%s" can be simplified to "%s", if it is strictly an int, as 0 is falsey *
932932 0 is considered false in a boolean context. Following this check blindly in
933933 weakly typed code base can create hard to debug issues. If the value can be
0 commit comments