Skip to content

Commit

Permalink
docs: Correct the module name of custom scalar example in documentati…
Browse files Browse the repository at this point in the history
…on (#1486)
  • Loading branch information
pei-lun committed Dec 23, 2022
1 parent 340d5ed commit 8eb2807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/scalars.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8eb2807

Please sign in to comment.