mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Improvex syntax
This commit is contained in:
parent
bee0af1125
commit
3586fdfb77
|
@ -35,7 +35,10 @@ class WrapRoot(object):
|
|||
|
||||
|
||||
def debug_objecttype(objecttype):
|
||||
return type('Debug{}'.format(objecttype._meta.type_name), (WrapRoot, objecttype), {'debug': Field(DjangoDebug, name='__debug')})
|
||||
return type(
|
||||
'Debug{}'.format(objecttype._meta.type_name),
|
||||
(WrapRoot, objecttype),
|
||||
{'debug': Field(DjangoDebug, name='__debug')})
|
||||
|
||||
|
||||
class DebugSchema(Schema):
|
||||
|
|
|
@ -4,6 +4,7 @@ from collections import Iterable
|
|||
from functools import wraps
|
||||
|
||||
import six
|
||||
|
||||
from graphql_relay.connection.arrayconnection import connection_from_list
|
||||
from graphql_relay.node.node import to_global_id
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user