mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 10:03:54 +03:00
Fix flake8 issues in field example
This commit is contained in:
parent
7af41373a7
commit
932e3d8b00
|
@ -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']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user