Fix type definition for Resolver
from typing import Any, Callable
from typing_extensions import Protocol
-from graphql.type import GraphQLResolveInfo, GraphQLSchema
+from graphql.type import GraphQLSchema
class Bindable(Protocol):
@@ -9,6 +9,9 @@ class Bindable(Protocol):
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]
