Repository navigation
Commit a6ea62b
[Markdown] Use a protocol for toc.unique's counters, bump version
Review feedback: `dict[str, int]` is narrower than the runtime needs.
`unique()` only calls `counters.get(base, 0)` and assigns
`counters[base] = count`, so a two-method protocol covers it.
Also bump METADATA.toml to ~=3.11.3, the release that added both
`counters` and `DelimiterProcessor.rule_of_3`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 4fcff94 commit a6ea62b
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
0 commit comments