From 0d1c1e18e3f34052b493c07345cf69c8e415f260 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 27 Sep 2021 12:46:21 -0400 Subject: [PATCH] Increased MAX_INT and MIN_INT to 2^53 - 1 --- graphene/types/scalars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/types/scalars.py b/graphene/types/scalars.py index 472f2d41e..58061d1d2 100644 --- a/graphene/types/scalars.py +++ b/graphene/types/scalars.py @@ -47,8 +47,8 @@ def get_type(cls): # # n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because # they are internally represented as IEEE 754 doubles. -MAX_INT = 2147483647 -MIN_INT = -2147483648 +MAX_INT = 9007199254740991 +MIN_INT = -9007199254740991 class Int(Scalar):