You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: collapse the two collision messages into one
The branch on `claimed_at == position` produced two messages so each could
name only the remedy its reader could apply. One message naming both argument
positions carries the same information: two different positions means two
bundles and is the caller's to resolve, one position named twice means a
single bundle claimed the name twice and is its author's. The reader works
that out from the numbers, which were already in the message.
Position-keying still matters and keeps its comment -- object identity would
read one extension passed twice as a bundle colliding with itself, and offer a
rename of someone else's function that the caller cannot make.
`test_with_extensions_rejects_one_extension_passed_twice` loses its assertion
that the message never says "rename", which is the behaviour being removed; it
and its sibling now pin the argument positions instead, which is what tells
the two cases apart. Docstrings and both guides drop the "two extensions"
framing -- one extension declaring a name twice was always refused too.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments