8000
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 28c71c5 commit 2692250Copy full SHA for 2692250
graphene_django/utils/utils.py
@@ -111,24 +111,7 @@ def is_valid_django_model(model):
111
112
113
def import_single_dispatch():
114
- try:
115
- from functools import singledispatch
116
- except ImportError:
117
- singledispatch = None
118
-
119
- if not singledispatch:
120
121
- from singledispatch import singledispatch
122
123
- pass
124
125
126
- raise Exception(
127
- "It seems your python version does not include "
128
- "functools.singledispatch. Please install the 'singledispatch' "
129
- "package. More information here: "
130
- "https://pypi.python.org/pypi/singledispatch"
131
- )
+ from functools import singledispatch
132
133
return singledispatch
134
0 commit comments