Skip to content

Commit

Permalink
Add type hints to default_field_resolver (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed May 18, 2020
1 parent 84e0f84 commit 2a034ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/execution/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ async def get_type():
return None


def default_field_resolver(source, info, **args):
def default_field_resolver(source: Any, info: GraphQLResolveInfo, **args: Any) -> Any:
"""Default field resolver.
If a resolve function is not given, then a default resolve behavior is used which
Expand Down

0 comments on commit 2a034ed

Please sign in to comment.