Commit 2730cd1
committed
fix: accept any AbstractDict in _normalize_theme
JSON.jl v1 returns JSON.Object{String,Any} from parsefile, which is
AbstractDict but not Dict. The previous `::Dict` signature dispatched
fine on JSON 0.21 (which returned Dict) but failed with MethodError on
v1. Relaxing to AbstractDict keeps the function working on both — the
inner `attrs isa Dict` guard is widened to `isa AbstractDict` for the
same reason.
Required to land #15 (CompatHelper: bump compat for JSON to 1).
Validated locally: 982/982 tests pass on both JSON 0.21 and 1.6.1 parent b2ae4e3 commit 2730cd1
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments