Commit 3a0c261
fix: use ternary expression in sun.sun test for Monty compatibility
Monty's if/else statement blocks don't return values — the last
expression evaluates to None. Use a ternary expression instead so
the dict literal is the return value:
{...} if isinstance(result, dict) else {...}
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8130371 commit 3a0c261
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
460 | 459 | | |
461 | 460 | | |
462 | 461 | | |
| |||
465 | 464 | | |
466 | 465 | | |
467 | 466 | | |
468 | | - | |
469 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
0 commit comments