Skip to content

Commit

Permalink
fix: fix wrong typing for the AdvancedDjangoFilterConnectionField con…
Browse files Browse the repository at this point in the history
…structor
  • Loading branch information
SquakR committed Mar 31, 2022
1 parent e9f023a commit 2d2143d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene_django_filter/connection_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module instead of the `DjangoFilterConnectionField` from graphene-django.
"""

from typing import Any, Dict, Iterable, Optional, Type
from typing import Any, Callable, Dict, Iterable, Optional, Type, Union

import graphene
from django.core.exceptions import ValidationError
Expand All @@ -24,7 +24,7 @@ class AdvancedDjangoFilterConnectionField(DjangoFilterConnectionField):

def __init__(
self,
type: Type[DjangoObjectType],
type: Union[Type[DjangoObjectType], Callable[[], Type[DjangoObjectType]], str],
fields: Optional[Dict[str, list]] = None,
order_by: Any = None,
extra_filter_meta: Optional[dict] = None,
Expand Down

0 comments on commit 2d2143d

Please sign in to comment.