@@ -57,9 +57,6 @@ Basic checker Messages
5757 Used when break or continue keywords are used outside a loop.
5858:function-redefined (E0102): *%s already defined line %s *
5959 Used when a function / class / method is redefined.
60- :continue-in-finally (E0116): *'continue' not supported inside 'finally' clause *
61- Emitted when the `continue ` keyword is found inside a finally clause, which
62- is a SyntaxError.
6360:abstract-class-instantiated (E0110): *Abstract class %r with abstract methods instantiated *
6461 Used when an abstract class with `abc.ABCMeta ` as metaclass has abstract
6562 methods and is instantiated.
@@ -108,6 +105,12 @@ Basic checker Messages
108105 Used when a break or a return statement is found inside the finally clause of
109106 a try...finally block: the exceptions raised in the try clause will be
110107 silently swallowed instead of being re-raised.
108+ :break-in-finally (W0137): *'break' discouraged inside 'finally' clause *
109+ Emitted when the `break ` keyword is found inside a finally clause. This
110+ will raise a SyntaxWarning starting in Python 3.14.
111+ :continue-in-finally (W0136): *'continue' discouraged inside 'finally' clause *
112+ Emitted when the `continue ` keyword is found inside a finally clause. This
113+ will raise a SyntaxWarning starting in Python 3.14.
111114:return-in-finally (W0134): *'return' shadowed by the 'finally' clause. *
112115 Emitted when a 'return' statement is found in a 'finally' block. This will
113116 overwrite the return value of a function and should be avoided.
0 commit comments