Repository navigation
Commit 5536c88
docs(workflows): drop the unsupported dict-literal example from the comment
Addresses review feedback: `_evaluate_simple_expression` implements a list
literal branch only. A mapping such as `{"a": 1}` has no branch there and
falls through to dot-path resolution:
list literal [1, 2] -> [1, 2]
dict literal {"a": 1} -> None
So the comment's claim that the evaluator supports dict literals was wrong.
Comment-only; no behaviour change. `_find_top_level` is brace-aware as well as
bracket-aware (`_find_top_level('{"a": 1, "b": 2}', ',')` returns -1), so the
scanner treats such a comma as nested either way -- the example was simply
describing syntax the evaluator does not implement, which is exactly the kind
of thing a future change might have relied on.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 4b19ce0 commit 5536c88
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
467 | 473 | | |
468 | 474 | | |
469 | 475 | | |
| |||
0 commit comments