Skip to content

Commit df9dd33

Browse files
committed
Fixed Python3 errors
1 parent 9b839f1 commit df9dd33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphene/core/classtypes/objecttype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def internal_type(cls, schema):
9393
return GraphQLObjectType(
9494
cls._meta.type_name,
9595
description=cls._meta.description,
96-
interfaces=map(schema.T, cls._meta.interfaces),
96+
interfaces=list(map(schema.T, cls._meta.interfaces)),
9797
fields=partial(cls.fields_internal_types, schema),
9898
is_type_of=getattr(cls, 'is_type_of', None)
9999
)

graphene/core/classtypes/uniontype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def internal_type(cls, schema):
3434

3535
return GraphQLUnionType(
3636
cls._meta.type_name,
37-
types=map(schema.T, cls._meta.types),
37+
types=list(map(schema.T, cls._meta.types)),
3838
resolve_type=cls._resolve_type,
3939
description=cls._meta.description,
4040
)

0 commit comments

Comments
 (0)