From 19eeab917becf76a5b21507b3bddd449c37ceacf Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 9 Apr 2020 14:45:58 +0200 Subject: [PATCH] fix rendering of code blocks in GraphQLScalarType and GraphQLUnionType docstrings Signed-off-by: oleg.hoefling --- src/graphql/type/definition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphql/type/definition.py b/src/graphql/type/definition.py index 6d23e0a1..14268b69 100644 --- a/src/graphql/type/definition.py +++ b/src/graphql/type/definition.py @@ -309,7 +309,7 @@ class GraphQLScalarType(GraphQLNamedType): If a type's serialize function does not return a value (i.e. it returns `None`), then no error will be included in the response. - Example: + Example:: def serialize_odd(value): if value % 2 == 1: @@ -912,7 +912,7 @@ class GraphQLUnionType(GraphQLNamedType): to describe what types are possible as well as providing a function to determine which type is actually used when the field is resolved. - Example: + Example:: class PetType(GraphQLUnionType): name = 'Pet'