Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ariadne_graphql_proxy/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def fields_thunk():
def interfaces_thunk():
return [new_types[i.name] for i in interface_type.interfaces]

return GraphQLInterfaceType(
return GraphQLInterfaceType( # ty: ignore[invalid-return-type]
name=interface_type.name,
fields=fields_thunk,
interfaces=interfaces_thunk,
Expand All @@ -785,7 +785,7 @@ def thunk():
if subtype.name not in types_to_exclude
)

return GraphQLUnionType(
return GraphQLUnionType( # ty: ignore[invalid-return-type]
name=union_type.name,
types=thunk,
resolve_type=union_type.resolve_type,
Expand Down
12 changes: 6 additions & 6 deletions ariadne_graphql_proxy/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def merge_enums(enum1: GraphQLEnumType, enum2: GraphQLEnumType) -> GraphQLEnumTy
extensions = enum1.extensions.copy()
extensions.update(**enum2.extensions.copy())

return GraphQLEnumType(
return GraphQLEnumType( # ty: ignore[invalid-return-type]
name=enum1.name,
values=merge_enums_values(enum1, enum2),
description=enum1.description or enum2.description,
Expand Down Expand Up @@ -257,7 +257,7 @@ def interfaces_thunk():
extensions = object1.extensions.copy()
extensions.update(**object2.extensions.copy())

return GraphQLObjectType(
return GraphQLObjectType( # ty: ignore[invalid-return-type]
name=object1.name,
fields=fields_thunk,
interfaces=interfaces_thunk,
Expand Down Expand Up @@ -448,7 +448,7 @@ def thunk():
)
return merged_fields

return GraphQLInputObjectType(
return GraphQLInputObjectType( # ty: ignore[invalid-return-type]
name=input1.name,
fields=thunk,
description=input1.description or input2.description,
Expand Down Expand Up @@ -550,7 +550,7 @@ def merge_scalars(
extensions = scalar1.extensions.copy()
extensions.update(**scalar2.extensions.copy())

return GraphQLScalarType(
return GraphQLScalarType( # ty: ignore[invalid-return-type]
name=scalar1.name,
description=scalar1.description or scalar2.description,
specified_by_url=scalar1.specified_by_url or scalar2.specified_by_url,
Expand Down Expand Up @@ -613,7 +613,7 @@ def interfaces_thunk():
extensions = interface1.extensions.copy()
extensions.update(**interface2.extensions.copy())

return GraphQLInterfaceType(
return GraphQLInterfaceType( # ty: ignore[invalid-return-type]
name=interface1.name,
fields=fields_thunk,
interfaces=interfaces_thunk,
Expand Down Expand Up @@ -657,7 +657,7 @@ def thunk():
extensions = union1.extensions.copy()
extensions.update(**union2.extensions.copy())

return GraphQLUnionType(
return GraphQLUnionType( # ty: ignore[invalid-return-type]
name=union1.name,
types=thunk,
resolve_type=union1.resolve_type or union2.resolve_type,
Expand Down
Loading
Loading