Skip to content

Commit 190f5cd

Browse files
committed
Restrict Thunks to support only Collections
Replicates graphql/graphql-js@fe5f91e
1 parent d9af9af commit 190f5cd

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
@@ -669,7 +669,7 @@ def is_required_argument(arg: GraphQLArgument) -> bool:
669669
return is_non_null_type(arg.type) and arg.default_value is Undefined
670670

671671

672-
T = TypeVar("T")
672+
T = TypeVar("T", bound=Collection)
673673
Thunk = Union[Callable[[], T], T]
674674

675675
GraphQLFieldMap = Dict[str, GraphQLField]

0 commit comments

Comments
 (0)