mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 04:53:55 +03:00
docs: Correct the module name of custom scalar example in documentation (#1486)
This commit is contained in:
parent
340d5ed12f
commit
8eb2807ce5
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user