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,12 +51,12 @@ 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
|
||||
|
||||
if not singledispatch:
|
||||
try:
|
||||
from singledispatch import singledispatch
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user