format argument example code

This commit is contained in:
Dave A 2019-06-09 09:16:52 -04:00
parent 17e57e7373
commit 42bfb37d26

View File

@ -18,11 +18,13 @@ class Argument(MountedType):
.. code:: python .. code:: python
age = graphene.String( from graphene import String, Boolean, Argument
age = String(
# Boolean implicitly mounted as Argument # Boolean implicitly mounted as Argument
dog_years=graphene.Boolean(description='convert to dog years'), dog_years=Boolean(description="convert to dog years"),
# Boolean explicitly mounted as Argument # Boolean explicitly mounted as Argument
decades=graphene.Argument(graphene.Boolean, default_value=False) decades=Argument(Boolean, default_value=False),
) )
args: args: