From 7e629cb488eaa7b31cada2999b0ad3ca6bfe59cc Mon Sep 17 00:00:00 2001 From: Pei-Lun Huang Date: Fri, 16 Dec 2022 17:32:41 +0800 Subject: [PATCH] Correct the module name of custom scalar example in documentation --- 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")