@@ -891,13 +891,15 @@ Refactoring checker Messages
891891 containing a continue statement. As such, it will warn when it encounters an
892892 else following a chain of ifs, all of them containing a continue statement.
893893:no-else-raise (R1720): *Unnecessary "%s" after "raise", %s *
894- Used in order to highlight an unnecessary block of code following an if
895- containing a raise statement. As such, it will warn when it encounters an
896- else following a chain of ifs, all of them containing a raise statement.
894+ Used in order to highlight an unnecessary block of code following an if, or a
895+ try/except containing a raise statement. As such, it will warn when it
896+ encounters an else following a chain of ifs, all of them containing a raise
897+ statement.
897898:no-else-return (R1705): *Unnecessary "%s" after "return", %s *
898- Used in order to highlight an unnecessary block of code following an if
899- containing a return statement. As such, it will warn when it encounters an
900- else following a chain of ifs, all of them containing a return statement.
899+ Used in order to highlight an unnecessary block of code following an if, or a
900+ try/except containing a return statement. As such, it will warn when it
901+ encounters an else following a chain of ifs, all of them containing a return
902+ statement.
901903:unnecessary-dict-index-lookup (R1733): *Unnecessary dictionary index lookup, use '%s' instead *
902904 Emitted when iterating over the dictionary items (key-item pairs) and
903905 accessing the value by index lookup. The value can be accessed directly
0 commit comments