diff --git a/mypy/checker.py b/mypy/checker.py index affc5280b57e..5dbfd893ca6b 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -3413,8 +3413,8 @@ def check_final(self, s: AssignmentStmt | OperatorAssignmentStmt | AssignmentExp if ( lv.node.final_unset_in_class and not lv.node.final_set_in_init - and not self.is_stub # It is OK to skip initializer in stub files. - and + and not self.is_stub + and # It is OK to skip initializer in stub files. # Avoid extra error messages, if there is no type in Final[...], # then we already reported the error about missing r.h.s. isinstance(s, AssignmentStmt)