Skip to content

Commit

Permalink
Fix type definition for Resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Dec 13, 2018
1 parent 2ebb8e7 commit 6f427aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ariadne/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def bind_to_schema(self, schema: GraphQLSchema) -> None:
pass # pragma: no cover


Resolver = Callable[[Any, GraphQLResolveInfo], Any]
# Note: this should be [Any, GraphQLResolveInfo, **kwargs],
# but this is not achieveable with python types yet:
# https://github.com/python/typing/issues/264
Resolver = Callable[..., Any]

ScalarOperation = Callable[[Any], Any]

0 comments on commit 6f427aa

Please sign in to comment.