Commit 1a2e2de
committed
Address review feedback
- Use a temp variable for the swap normalization. Tuple-unpack form
(lhs, rhs = rhs, lhs) interacted badly with mypy's narrowing in
mypyc-compiled mypy, producing a runtime IndexExpr-vs-StrExpr cast
failure (mypy#21586). Workaround per @p-sawicki on PR #21579.
- Drop test_any_dispatch_uses_generic_path. The 'Any' dispatch still
calls the mypyc-compiled eq_comma, which has the specialization, so
this test was not exercising the unspecialized path as claimed. The
IR golden pins the specialized lowering, and eq_two_chars / eq_empty
cover the fall-through behavior.1 parent 60abe82 commit 1a2e2de
2 files changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
| 995 | + | |
| 996 | + | |
996 | 997 | | |
997 | 998 | | |
998 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
1418 | | - | |
1419 | 1417 | | |
1420 | 1418 | | |
1421 | 1419 | | |
| |||
1475 | 1473 | | |
1476 | 1474 | | |
1477 | 1475 | | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
0 commit comments