Commit 866012b
docs(spec,oracle): null_coalescing_assignment.md dictionary examples use nullable element types with status notes for the missing-key and expression forms (#1790); oracle ledger mirrors the membership-needle deviation
- null_coalescing_assignment.md §Dictionary Operations used non-nullable element types (SPY0222 at
dff55b2, 852bf48 and e3b4345 alike — correctly, per its own §Type Requirements); corrected to
`Data | None` / `int | None`. A subscript store on a MISSING key raises KeyError at every sha, and
`(name ??= "Default")` / `(a ??= (b ??= 42))` are SPY0104 (statement-only parser) at every sha: the
contract sentences stay (Rule 7 — spec is authoritative) with status notes pointing at #1790, where
the owner rules between implementing them and rewording. Executed with `sharpyc run` @ e3b4345.
- build_tools/cpython_oracle/ledger.yaml: `python3 -m build_tools.cpython_oracle ledger --write`
after 02beba0 added `membership-needle-type-mismatch` to docs/deviations.yaml — the ledger
mirrors the catalog; no other change. All four /push regeneration gates are clean at this state
(check_spy_staleness.sh 0, check_spy_tests_staleness.sh 0, stdlib docs and ledger no further diff).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G7JYB3Yguom773bhAACicS1 parent e3b4345 commit 866012b
2 files changed
Lines changed: 14 additions & 2 deletions
File tree
- build_tools/cpython_oracle
- docs/language_specification
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
352 | 360 | | |
353 | 361 | | |
354 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments