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