From 48eee8c4e066186289bea8040f4d878957d04584 Mon Sep 17 00:00:00 2001 From: Jason Kraus Date: Tue, 5 Jan 2021 21:41:44 -0800 Subject: [PATCH] cleanup(Decimal): cant test FloatValueNode so drop the mention of it --- graphene/types/decimal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/types/decimal.py b/graphene/types/decimal.py index f42ac554..b2acbe7e 100644 --- a/graphene/types/decimal.py +++ b/graphene/types/decimal.py @@ -2,7 +2,7 @@ from __future__ import absolute_import 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 @@ -23,7 +23,7 @@ class Decimal(Scalar): @classmethod def parse_literal(cls, node): - if isinstance(node, (StringValueNode, IntValueNode, FloatValueNode)): + if isinstance(node, (StringValueNode, IntValueNode)): return cls.parse_value(node.value) @staticmethod