Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c93b84

Browse files
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

‎src/graphql/type/definition.py

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /