From 14f14d3ea5cd193f34910ef9855f4d8e27c74551 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 19 Jul 2018 12:21:41 -0700 Subject: [PATCH] Added Enum to graphql pyutils compat --- graphql/pyutils/compat.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphql/pyutils/compat.py b/graphql/pyutils/compat.py index 43613d74..91ad41d5 100644 --- a/graphql/pyutils/compat.py +++ b/graphql/pyutils/compat.py @@ -24,6 +24,11 @@ import sys import types +try: + from enum import Enum +except ImportError: + from .enum import Enum + if False: from typing import Callable