We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbbf688 commit 1988519Copy full SHA for 1988519
graphene/contrib/django/utils.py
@@ -51,16 +51,16 @@ def get_filtering_args_from_filterset(filterset_class, type):
51
52
53
def import_single_dispatch():
54
- singledispatch = None
55
try:
56
from functools import singledispatch
57
except ImportError:
58
- pass
+ singledispatch = None
59
60
- try:
61
- from singledispatch import singledispatch
62
- except ImportError:
63
+ if not singledispatch:
+ try:
+ from singledispatch import singledispatch
+ except ImportError:
+ pass
64
65
if not singledispatch:
66
raise Exception(
0 commit comments