Skip to content

Commit

Permalink
Fix return type of assert_composite_type (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmays authored Jun 9, 2023
1 parent a6c15f3 commit 0c93b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/type/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ def is_composite_type(type_: Any) -> TypeGuard[GraphQLCompositeType]:
)


def assert_composite_type(type_: Any) -> GraphQLType:
def assert_composite_type(type_: Any) -> GraphQLCompositeType:
if not is_composite_type(type_):
raise TypeError(f"Expected {type_} to be a GraphQL composite type.")
return type_
Expand Down

0 comments on commit 0c93b84

Please sign in to comment.