We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a821e commit d9320d3Copy full SHA for d9320d3
mypy/util.py
@@ -937,10 +937,8 @@ def json_dumps(obj: object, debug: bool = False) -> bytes:
937
try:
938
return orjson.dumps(obj, option=dumps_option) # type: ignore[no-any-return]
939
except TypeError as e:
940
- if str(e) == 'Integer exceeds 64-bit range':
941
- # use stdlib json below
942
- pass
943
- raise
+ if str(e) != 'Integer exceeds 64-bit range':
+ raise
944
945
if debug:
946
return json.dumps(obj, indent=2, sort_keys=True).encode("utf-8")
0 commit comments