Repository navigation
Commit bd82a26
authored
fix: make
Bumping `ty` to 0.0.83 fails type-check: it rejects e.g. `list[dict[str,
int]]` as `JsonSerializable` because `list`/`dict` are invariant.
Fix: `JsonSerializable` uses read-only `Mapping`/`Sequence`, so callers
can keep passing plain dicts and lists. The alias is only used for
inputs that get serialized.
The lock bumps only `ty` to 0.0.83 so CI proves the fix; unit tests
pass; also clears the `push_items` error in apify-sdk-python.JsonSerializable type alias read-only (#1072)1 parent 227e47f commit bd82a26
2 files changed
Lines changed: 23 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments