@@ -578,7 +578,9 @@ def is_required_argument(arg: GraphQLArgument) -> bool:
578
578
Thunk = Union [Callable [[], T ], T ]
579
579
580
580
GraphQLFieldMap = Dict [str , GraphQLField ]
581
- GraphQLInterfaceList = Sequence ["GraphQLInterfaceType" ]
581
+ GraphQLInterfaceList = Union [
582
+ List ["GraphQLInterfaceType" ], Tuple ["GraphQLInterfaceType" ]
583
+ ]
582
584
583
585
584
586
class GraphQLObjectType (GraphQLNamedType ):
@@ -686,7 +688,7 @@ def fields(self) -> GraphQLFieldMap:
686
688
def interfaces (self ) -> GraphQLInterfaceList :
687
689
"""Get provided interfaces."""
688
690
try :
689
- interfaces = resolve_thunk (self ._interfaces )
691
+ interfaces : GraphQLInterfaceList = resolve_thunk (self ._interfaces )
690
692
except GraphQLError :
691
693
raise
692
694
except Exception as error :
@@ -810,7 +812,7 @@ def assert_interface_type(type_: Any) -> GraphQLInterfaceType:
810
812
return cast (GraphQLInterfaceType , type_ )
811
813
812
814
813
- GraphQLTypeList = Sequence [ GraphQLObjectType ]
815
+ GraphQLTypeList = Union [ List [ GraphQLObjectType ], Tuple [ GraphQLObjectType ] ]
814
816
815
817
816
818
class GraphQLUnionType (GraphQLNamedType ):
@@ -877,7 +879,7 @@ def to_kwargs(self) -> Dict[str, Any]:
877
879
def types (self ) -> GraphQLTypeList :
878
880
"""Get provided types."""
879
881
try :
880
- types = resolve_thunk (self ._types )
882
+ types : GraphQLTypeList = resolve_thunk (self ._types )
881
883
except GraphQLError :
882
884
raise
883
885
except Exception as error :
0 commit comments