Skip to content

fix rendering of code blocks in GraphQLScalarType and GraphQLUnionType docstrings #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/graphql/type/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down