Skip to content

Commit 672cba0

Browse files
committed
Fixed tests
1 parent 1f11bc5 commit 672cba0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphene_sqlalchemy/converter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ def convert_scalar_list_to_list(type, column, registry=None):
127127

128128

129129
@convert_sqlalchemy_type.register(postgresql.ARRAY)
130-
def convert_postgres_array_to_list(type, column, registry=None):
130+
def convert_postgres_array_to_list(_type, column, registry=None):
131131
graphene_type = convert_sqlalchemy_type(column.type.item_type, column)
132-
return List(graphene_type, description=column.doc, required=not(column.nullable))
132+
inner_type = type(graphene_type)
133+
return List(inner_type, description=column.doc, required=not(column.nullable))
133134

134135

135136
@convert_sqlalchemy_type.register(postgresql.HSTORE)

0 commit comments

Comments
 (0)