Repository navigation
Commit dcf6a65
committed
Fix dec_hook exception type in json.decode docstring
Fixes #774.
json.decode was the only dec_hook docstring saying to raise a TypeError
for an unsupported type; json.Decoder, msgpack.decode, msgpack.Decoder,
and convert all say NotImplementedError, which jcrist confirmed in #774
is the intended contract (TypeError/ValueError are for bad values).
The changelog entry points at the issue since there's no PR number yet;
it can reference the PR instead once one exists.
Disclosure: I used AI assistance (Claude) to draft this change and
reviewed the result.1 parent a1ebbcd commit dcf6a65
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19945 | 19945 | | |
19946 | 19946 | | |
19947 | 19947 | | |
19948 | | - | |
| 19948 | + | |
19949 | 19949 | | |
19950 | 19950 | | |
19951 | 19951 | | |
| |||
0 commit comments