Skip to content

Commit 0c93b84

Browse files
authored
Fix return type of assert_composite_type (#203)
1 parent a6c15f3 commit 0c93b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/graphql/type/definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ def is_composite_type(type_: Any) -> TypeGuard[GraphQLCompositeType]:
16201620
)
16211621

16221622

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

0 commit comments

Comments
 (0)