Commit 95b4c05
fix: address PR review feedback
- Remove duplicate if __name__ == '__main__' block before RootInitializerTest
- Replace assert with ValueError in lift_initializers_to_constants
- Fix initializer() docstring to note input(const_value=) exception
- Use self.initializer() for non-cached path to preserve scope naming
- Remove unused captured_values in test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: G Ramalingam <grama@microsoft.com>1 parent dc52443 commit 95b4c05
2 files changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
324 | | - | |
325 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
326 | 330 | | |
327 | 331 | | |
328 | 332 | | |
| |||
430 | 434 | | |
431 | 435 | | |
432 | 436 | | |
433 | | - | |
| 437 | + | |
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | 1444 | | |
1449 | 1445 | | |
1450 | 1446 | | |
| |||
1485 | 1481 | | |
1486 | 1482 | | |
1487 | 1483 | | |
1488 | | - | |
1489 | | - | |
1490 | 1484 | | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
| 1485 | + | |
1494 | 1486 | | |
1495 | 1487 | | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
| 1488 | + | |
1499 | 1489 | | |
1500 | 1490 | | |
1501 | 1491 | | |
| |||
0 commit comments