mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Fixes to how singledispatch is imported
This commit is contained in:
parent
bbbf688449
commit
1988519536
|
@ -51,16 +51,16 @@ def get_filtering_args_from_filterset(filterset_class, type):
|
|||
|
||||
|
||||
def import_single_dispatch():
|
||||
singledispatch = None
|
||||
try:
|
||||
from functools import singledispatch
|
||||
except ImportError:
|
||||
pass
|
||||
singledispatch = None
|
||||
|
||||
try:
|
||||
from singledispatch import singledispatch
|
||||
except ImportError:
|
||||
pass
|
||||
if not singledispatch:
|
||||
try:
|
||||
from singledispatch import singledispatch
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
if not singledispatch:
|
||||
raise Exception(
|
||||
|
|
Loading…
Reference in New Issue
Block a user