Commit af5e7de
Fix type checking errors in contains_assignment_expr
- Fix DictExpr iteration: iterate over items directly (items is list[tuple[Expression | None, Expression]])
- Fix IndexExpr: remove unnecessary None check since index is always Expression, not Optional
- Addresses mypy self-check failures:
- DictExpr has no attribute 'values'
- Unreachable code after return statement
- Type mismatch in zip iteration1 parent 227ba5f commit af5e7de
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5087 | 5087 | | |
5088 | 5088 | | |
5089 | 5089 | | |
5090 | | - | |
5091 | | - | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + | |
| 5093 | + | |
| 5094 | + | |
5092 | 5095 | | |
5093 | 5096 | | |
5094 | 5097 | | |
| |||
5117 | 5120 | | |
5118 | 5121 | | |
5119 | 5122 | | |
5120 | | - | |
5121 | | - | |
5122 | | - | |
| 5123 | + | |
5123 | 5124 | | |
5124 | 5125 | | |
5125 | 5126 | | |
| |||
0 commit comments