@@ -57,9 +57,6 @@ Basic checker Messages
57
57
Used when break or continue keywords are used outside a loop.
58
58
:function-redefined (E0102): *%s already defined line %s *
59
59
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.
63
60
:abstract-class-instantiated (E0110): *Abstract class %r with abstract methods instantiated *
64
61
Used when an abstract class with `abc.ABCMeta ` as metaclass has abstract
65
62
methods and is instantiated.
@@ -108,6 +105,12 @@ Basic checker Messages
108
105
Used when a break or a return statement is found inside the finally clause of
109
106
a try...finally block: the exceptions raised in the try clause will be
110
107
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.
111
114
:return-in-finally (W0134): *'return' shadowed by the 'finally' clause. *
112
115
Emitted when a 'return' statement is found in a 'finally' block. This will
113
116
overwrite the return value of a function and should be avoided.
0 commit comments