@@ -93,28 +93,28 @@ def sort_types(arr: FrozenList[GraphQLNamedType]) -> List[GraphQLNamedType]:
93
93
def sort_named_type (type_ : GraphQLNamedType ) -> GraphQLNamedType :
94
94
if is_scalar_type (type_ ) or is_introspection_type (type_ ):
95
95
return type_
96
- elif is_object_type (type_ ):
96
+ if is_object_type (type_ ):
97
97
kwargs = type_ .to_kwargs ()
98
98
type_ = cast (GraphQLObjectType , type_ )
99
99
kwargs .update (
100
100
interfaces = lambda : sort_types (type_ .interfaces ),
101
101
fields = lambda : sort_fields (type_ .fields ),
102
102
)
103
103
return GraphQLObjectType (** kwargs )
104
- elif is_interface_type (type_ ):
104
+ if is_interface_type (type_ ):
105
105
kwargs = type_ .to_kwargs ()
106
106
type_ = cast (GraphQLInterfaceType , type_ )
107
107
kwargs .update (
108
108
interfaces = lambda : sort_types (type_ .interfaces ),
109
109
fields = lambda : sort_fields (type_ .fields ),
110
110
)
111
111
return GraphQLInterfaceType (** kwargs )
112
- elif is_union_type (type_ ):
112
+ if is_union_type (type_ ):
113
113
kwargs = type_ .to_kwargs ()
114
114
type_ = cast (GraphQLUnionType , type_ )
115
115
kwargs .update (types = lambda : sort_types (type_ .types ))
116
116
return GraphQLUnionType (** kwargs )
117
- elif is_enum_type (type_ ):
117
+ if is_enum_type (type_ ):
118
118
kwargs = type_ .to_kwargs ()
119
119
type_ = cast (GraphQLEnumType , type_ )
120
120
kwargs .update (
@@ -129,7 +129,7 @@ def sort_named_type(type_: GraphQLNamedType) -> GraphQLNamedType:
129
129
}
130
130
)
131
131
return GraphQLEnumType (** kwargs )
132
- elif is_input_object_type (type_ ):
132
+ if is_input_object_type (type_ ):
133
133
kwargs = type_ .to_kwargs ()
134
134
type_ = cast (GraphQLInputObjectType , type_ )
135
135
kwargs .update (fields = lambda : sort_input_fields (type_ .fields ))
0 commit comments