Skip to content

Commit ea0dd0c

Browse files
committed
Fixed #156
1 parent f131676 commit ea0dd0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/type/scalars.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# As per the GraphQL Spec, Integers are only treated as valid when a valid
77
# 32-bit signed integer, providing the broadest support across platforms.
88
#
9-
# n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
9+
# n.b. JavaScript's integers are safe between -(2^31 - 1) and 2^31 - 1 because
1010
# they are internally represented as IEEE 754 doubles.
1111
MAX_INT = 2147483647
1212
MIN_INT = -2147483648
@@ -37,7 +37,7 @@ def parse_int_literal(ast):
3737
GraphQLInt = GraphQLScalarType(
3838
name='Int',
3939
description='The `Int` scalar type represents non-fractional signed whole numeric '
40-
'values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since '
40+
'values. Int can represent values between -(2^31 - 1) and 2^31 - 1 since '
4141
'represented in JSON as double-precision floating point numbers specified'
4242
'by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).',
4343
serialize=coerce_int,

0 commit comments

Comments
 (0)