Fix flake8 issues in field example

This commit is contained in:
Amit Saha 2015-11-20 11:47:10 +11:00
parent 7af41373a7
commit 932e3d8b00

View File

@ -1,12 +1,15 @@
import graphene import graphene
class Person(graphene.Interface): class Person(graphene.Interface):
name = graphene.String() name = graphene.String()
age = graphene.ID() age = graphene.ID()
class Patron(Person): class Patron(Person):
id = graphene.ID() id = graphene.ID()
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
patron = graphene.Field(Patron) patron = graphene.Field(Patron)
@ -26,5 +29,3 @@ query = '''
result = schema.execute(query) result = schema.execute(query)
# Print the result # Print the result
print result.data['patron'] print result.data['patron']