Skip to content

Commit 8994039

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 115e4e5 commit 8994039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3405,8 +3405,8 @@ def check_final(self, s: AssignmentStmt | OperatorAssignmentStmt | AssignmentExp
34053405
if (
34063406
lv.node.final_unset_in_class
34073407
and not lv.node.final_set_in_init
3408-
and not self.is_stub
3409-
and # It is OK to skip initializer in stub files.
3408+
and not self.is_stub # It is OK to skip initializer in stub files.
3409+
and
34103410
# Avoid extra error messages, if there is no type in Final[...],
34113411
# then we already reported the error about missing r.h.s.
34123412
isinstance(s, AssignmentStmt)

0 commit comments

Comments
 (0)