From 8eb2807ce570389b28aae8b713a0f3b1e97d96b0 Mon Sep 17 00:00:00 2001 From: Pei-Lun H Date: Fri, 23 Dec 2022 14:57:45 +0800 Subject: [PATCH] docs: Correct the module name of custom scalar example in documentation (#1486) --- docs/types/scalars.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/scalars.rst b/docs/types/scalars.rst index f47fffea..2a55245d 100644 --- a/docs/types/scalars.rst +++ b/docs/types/scalars.rst @@ -271,7 +271,7 @@ The following is an example for creating a DateTime scalar: @staticmethod def parse_literal(node, _variables=None): - if isinstance(node, ast.StringValue): + if isinstance(node, ast.StringValueNode): return datetime.datetime.strptime( node.value, "%Y-%m-%dT%H:%M:%S.%f")