Skip to content

Commit

Permalink
Return the comment to where it originally was (not relevant for my ne…
Browse files Browse the repository at this point in the history
…w feature)
  • Loading branch information
eladshoshani committed Apr 23, 2024
1 parent dbc86d2 commit 285e883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 285e883

Please sign in to comment.