Skip to content

Commit

Permalink
fix: change the wrong return type of the `get_filtering_args_from_fil…
Browse files Browse the repository at this point in the history
…terset` function
  • Loading branch information
SquakR committed Feb 6, 2022
1 parent dd18cd3 commit 0087dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene_django_filter/input_type_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
def get_filtering_args_from_filterset(
filterset_class: Type[AdvancedFilterSet],
node_type: Type[graphene.ObjectType],
) -> Dict[str, graphene.InputField]:
) -> Dict[str, graphene.Argument]:
"""Inspect a FilterSet and produce the arguments to pass to a Graphene Field.
These arguments will be available to filter against in the GraphQL.
"""
return {
'filter': graphene.InputField(
'filter': graphene.Argument(
create_filter_input_type(
filterset_to_trees(filterset_class),
filterset_class,
Expand Down

0 comments on commit 0087dcf

Please sign in to comment.