Commit 80fdfbe
the[]: restore the intent-documenting nuance
I had rewritten "optional, although allowed (to explicitly document intent)"
into a preference for the shorter form, on the grounds that the docstring
disagreed with `CLAUDE.md`. That resolved the tension in the wrong direction:
an explicit mark on an auto-captured LHS is mechanically redundant but can still
tell a *reader* which value the test is about, and that is sometimes worth the
characters. The original wording said exactly this, so it is restored.
The "Common mistakes" list keeps only the cases that are actually wrong — the
three that capture a value nobody wants to see. The redundant-LHS case is not
one of them, and is left to the passage above, which permits it.
Also prefixes the changelog entry with the module it concerns.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent be00126 commit 80fdfbe
2 files changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
| |||
0 commit comments