@@ -93,28 +93,28 @@ def sort_types(arr: FrozenList[GraphQLNamedType]) -> List[GraphQLNamedType]:
9393 def sort_named_type (type_ : GraphQLNamedType ) -> GraphQLNamedType :
9494 if is_scalar_type (type_ ) or is_introspection_type (type_ ):
9595 return type_
96- elif is_object_type (type_ ):
96+ if is_object_type (type_ ):
9797 kwargs = type_ .to_kwargs ()
9898 type_ = cast (GraphQLObjectType , type_ )
9999 kwargs .update (
100100 interfaces = lambda : sort_types (type_ .interfaces ),
101101 fields = lambda : sort_fields (type_ .fields ),
102102 )
103103 return GraphQLObjectType (** kwargs )
104- elif is_interface_type (type_ ):
104+ if is_interface_type (type_ ):
105105 kwargs = type_ .to_kwargs ()
106106 type_ = cast (GraphQLInterfaceType , type_ )
107107 kwargs .update (
108108 interfaces = lambda : sort_types (type_ .interfaces ),
109109 fields = lambda : sort_fields (type_ .fields ),
110110 )
111111 return GraphQLInterfaceType (** kwargs )
112- elif is_union_type (type_ ):
112+ if is_union_type (type_ ):
113113 kwargs = type_ .to_kwargs ()
114114 type_ = cast (GraphQLUnionType , type_ )
115115 kwargs .update (types = lambda : sort_types (type_ .types ))
116116 return GraphQLUnionType (** kwargs )
117- elif is_enum_type (type_ ):
117+ if is_enum_type (type_ ):
118118 kwargs = type_ .to_kwargs ()
119119 type_ = cast (GraphQLEnumType , type_ )
120120 kwargs .update (
@@ -129,7 +129,7 @@ def sort_named_type(type_: GraphQLNamedType) -> GraphQLNamedType:
129129 }
130130 )
131131 return GraphQLEnumType (** kwargs )
132- elif is_input_object_type (type_ ):
132+ if is_input_object_type (type_ ):
133133 kwargs = type_ .to_kwargs ()
134134 type_ = cast (GraphQLInputObjectType , type_ )
135135 kwargs .update (fields = lambda : sort_input_fields (type_ .fields ))
0 commit comments