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
class Person(graphene.Interface):
name = graphene.String()
age = graphene.ID()
class Patron(Person):
id = graphene.ID()
class Query(graphene.ObjectType):
patron = graphene.Field(Patron)
@ -26,5 +29,3 @@ query = '''
result = schema.execute(query)
# Print the result
print result.data['patron']