Skip to content

Commit 8eb2807

Browse files
authored
docs: Correct the module name of custom scalar example in documentation (#1486)
1 parent 340d5ed commit 8eb2807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/scalars.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ The following is an example for creating a DateTime scalar:
271271
272272
@staticmethod
273273
def parse_literal(node, _variables=None):
274-
if isinstance(node, ast.StringValue):
274+
if isinstance(node, ast.StringValueNode):
275275
return datetime.datetime.strptime(
276276
node.value, "%Y-%m-%dT%H:%M:%S.%f")
277277

0 commit comments

Comments
 (0)