Skip to content

Commit ecc7be4

Browse files
authored
Fix rendering ReST rendering in docstrings (#84)
1 parent e9ac4e0 commit ecc7be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphql/type/definition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class GraphQLScalarType(GraphQLNamedType):
309309
If a type's serialize function does not return a value (i.e. it returns `None`),
310310
then no error will be included in the response.
311311
312-
Example:
312+
Example::
313313
314314
def serialize_odd(value):
315315
if value % 2 == 1:
@@ -912,7 +912,7 @@ class GraphQLUnionType(GraphQLNamedType):
912912
to describe what types are possible as well as providing a function to determine
913913
which type is actually used when the field is resolved.
914914
915-
Example:
915+
Example::
916916
917917
class PetType(GraphQLUnionType):
918918
name = 'Pet'

0 commit comments

Comments
 (0)