Skip to content

Commit 14f14d3

Browse files
committed
Added Enum to graphql pyutils compat
1 parent 24687b6 commit 14f14d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphql/pyutils/compat.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
import sys
2525
import types
2626

27+
try:
28+
from enum import Enum
29+
except ImportError:
30+
from .enum import Enum
31+
2732
if False:
2833
from typing import Callable
2934

0 commit comments

Comments
 (0)