Commit b137254
authored
Fallback to stdlib json if integer exceeds 64-bit range (#18148)
Fixes the error below:
```python
File "mypy/main.py", line 102, in main
File "mypy/main.py", line 186, in run_build
File "mypy/build.py", line 194, in build
File "mypy/build.py", line 269, in _build
File "mypy/build.py", line 2935, in dispatch
File "mypy/build.py", line 3333, in process_graph
File "mypy/build.py", line 3460, in process_stale_scc
File "mypy/build.py", line 2497, in write_cache
File "mypy/build.py", line 1560, in write_cache
File "mypy/util.py", line 924, in json_dumps
TypeError: Integer exceeds 64-bit range
```
Related: ijl/orjson#1161 parent 2ebc690 commit b137254
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
931 | | - | |
| 931 | + | |
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
935 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
936 | 942 | | |
937 | 943 | | |
938 | 944 | | |
| |||
0 commit comments