@@ -131,7 +131,7 @@ async def check(self, ctx: RuleContext) -> None:
131131 continue
132132
133133 async def _check_if_statement (
134- self , node : ast .If , cell , ctx : RuleContext
134+ self , node : ast .If , cell : CellDef , ctx : RuleContext
135135 ) -> None :
136136 """Check if an if statement has all branches ending with expressions."""
137137 branches = self ._collect_if_branches (node )
@@ -144,7 +144,7 @@ async def _check_if_statement(
144144 await self ._report_diagnostic (node , cell , ctx , "if statement" )
145145
146146 async def _check_match_statement (
147- self , node : ast .Match , cell , ctx : RuleContext
147+ self , node : ast .Match , cell : CellDef , ctx : RuleContext
148148 ) -> None :
149149 """Check if a match statement has all cases ending with expressions."""
150150 if not node .cases :
@@ -157,7 +157,7 @@ async def _check_match_statement(
157157 await self ._report_diagnostic (node , cell , ctx , "match statement" )
158158
159159 async def _check_try_statement (
160- self , node : ast .Try , cell , ctx : RuleContext
160+ self , node : ast .Try , cell : CellDef , ctx : RuleContext
161161 ) -> None :
162162 """Check if a try statement has all branches ending with expressions."""
163163 branches = [node .body ]
0 commit comments