Skip to content

Commit 0bf25fb

Browse files
committed
Was broken when sqlalchemy_utils not installed
1 parent 1d353f7 commit 0bf25fb

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

graphene_sqlalchemy/converter.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
from .fields import createConnectionField
1111

1212
try:
13-
from sqlalchemy_utils import ChoiceType, JSONType, ScalarListType, TSVectorType
13+
from sqlalchemy_utils import (
14+
ChoiceType, JSONType, ScalarListType, TSVectorType)
1415
except ImportError:
15-
class ChoiceType(object):
16-
pass
17-
18-
class ScalarListType(object):
19-
pass
20-
21-
class JSONType(object):
22-
pass
16+
ChoiceType = JSONType = ScalarListType = TSVectorType = object
2317

2418

2519
def get_column_doc(column):

0 commit comments

Comments
 (0)