@@ -145,12 +145,12 @@ def extend_union_type(type):
145145 return GraphQLUnionType (
146146 name = type .name ,
147147 description = type .description ,
148- types = map (get_type_from_def , type .get_possible_types ()),
148+ types = list ( map (get_type_from_def , type .get_possible_types () )),
149149 resolve_type = raise_client_schema_execution_error ,
150150 )
151151
152152 def extend_implemented_interfaces (type ):
153- interfaces = map (get_type_from_def , type .get_interfaces ())
153+ interfaces = list ( map (get_type_from_def , type .get_interfaces () ))
154154
155155 # If there are any extensions to the interfaces, apply those here.
156156 extensions = type_extensions_map [type .name ]
@@ -171,7 +171,7 @@ def extend_implemented_interfaces(type):
171171 def extend_field_map (type ):
172172 new_field_map = OrderedDict ()
173173 old_field_map = type .get_fields ()
174- for field_name , field in old_field_map .iteritems ():
174+ for field_name , field in old_field_map .items ():
175175 new_field_map [field_name ] = GraphQLField (
176176 extend_field_type (field .type ),
177177 description = field .description ,
@@ -237,7 +237,7 @@ def build_interface_type(type_ast):
237237 def build_union_type (type_ast ):
238238 return GraphQLUnionType (
239239 type_ast .name .value ,
240- types = map (get_type_from_AST , type_ast .types ),
240+ types = list ( map (get_type_from_AST , type_ast .types ) ),
241241 resolve_type = raise_client_schema_execution_error ,
242242 )
243243
@@ -267,7 +267,7 @@ def build_input_object_type(type_ast):
267267 )
268268
269269 def build_implemented_interfaces (type_ast ):
270- return map (get_type_from_AST , type_ast .interfaces )
270+ return list ( map (get_type_from_AST , type_ast .interfaces ) )
271271
272272 def build_field_map (type_ast ):
273273 return {
@@ -324,11 +324,11 @@ def build_field_type(type_ast):
324324
325325 # Iterate through all types, getting the type definition for each, ensuring
326326 # that any type not directly referenced by a field will get created.
327- for typeName , _def in schema .get_type_map ().iteritems ():
327+ for typeName , _def in schema .get_type_map ().items ():
328328 get_type_from_def (_def )
329329
330330 # Do the same with new types.
331- for typeName , _def in type_definition_map .iteritems ():
331+ for typeName , _def in type_definition_map .items ():
332332 get_type_from_AST (_def )
333333
334334 # Then produce and return a Schema with these types.
0 commit comments