cleanup(Decimal): cant test FloatValueNode so drop the mention of it

This commit is contained in:
Jason Kraus 2021-01-05 21:41:44 -08:00
parent 33d77854ce
commit 48eee8c4e0

View File

@ -2,7 +2,7 @@ from __future__ import absolute_import
from decimal import Decimal as _Decimal from decimal import Decimal as _Decimal
from graphql.language.ast import StringValueNode, IntValueNode, FloatValueNode from graphql.language.ast import StringValueNode, IntValueNode
from .scalars import Scalar from .scalars import Scalar
@ -23,7 +23,7 @@ class Decimal(Scalar):
@classmethod @classmethod
def parse_literal(cls, node): def parse_literal(cls, node):
if isinstance(node, (StringValueNode, IntValueNode, FloatValueNode)): if isinstance(node, (StringValueNode, IntValueNode)):
return cls.parse_value(node.value) return cls.parse_value(node.value)
@staticmethod @staticmethod