Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Dec 11, 2024
1 parent 28849f0 commit 0e24909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3650,7 +3650,7 @@ def unwrap_final(self, s: AssignmentStmt) -> bool:
isinstance(s.rvalue, TempNode)
and s.rvalue.no_rhs
# Filter duplicate errors, we already reported this:
and not self.type.is_named_tuple
and not (self.type and self.type.is_named_tuple)
):
invalid_bare_final = True
self.fail("Type in Final[...] can only be omitted if there is an initializer", s)
Expand Down

0 comments on commit 0e24909

Please sign in to comment.