Skip to content

Commit 0e24909

Browse files
committed
Fix CI
1 parent 28849f0 commit 0e24909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3650,7 +3650,7 @@ def unwrap_final(self, s: AssignmentStmt) -> bool:
36503650
isinstance(s.rvalue, TempNode)
36513651
and s.rvalue.no_rhs
36523652
# Filter duplicate errors, we already reported this:
3653-
and not self.type.is_named_tuple
3653+
and not (self.type and self.type.is_named_tuple)
36543654
):
36553655
invalid_bare_final = True
36563656
self.fail("Type in Final[...] can only be omitted if there is an initializer", s)

0 commit comments

Comments
 (0)