Skip to content

Commit 3586fdf

Browse files
committed
Improvex syntax
1 parent bee0af1 commit 3586fdf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

graphene/contrib/django/debug/schema.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def resolve_debug(self, args, info):
3535

3636

3737
def debug_objecttype(objecttype):
38-
return type('Debug{}'.format(objecttype._meta.type_name), (WrapRoot, objecttype), {'debug': Field(DjangoDebug, name='__debug')})
38+
return type(
39+
'Debug{}'.format(objecttype._meta.type_name),
40+
(WrapRoot, objecttype),
41+
{'debug': Field(DjangoDebug, name='__debug')})
3942

4043

4144
class DebugSchema(Schema):

graphene/relay/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from functools import wraps
55

66
import six
7+
78
from graphql_relay.connection.arrayconnection import connection_from_list
89
from graphql_relay.node.node import to_global_id
910

0 commit comments

Comments
 (0)