Skip to content

Commit a7e8a1b

Browse files
committed
Made tests also work in py36 (pheww!!! #2)
1 parent 3216608 commit a7e8a1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_sqlalchemy/converter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import datetime
2+
import typing
23
from functools import singledispatch
34
from typing import Any
45

@@ -307,7 +308,7 @@ def convert_hybrid_property_return_type_inner_time(arg):
307308
return Time
308309

309310

310-
@convert_hybrid_property_return_type_inner.register(lambda x: getattr(x, '__origin__', None) == list)
311+
@convert_hybrid_property_return_type_inner.register(lambda x: getattr(x, '__origin__', None) in [list, typing.List])
311312
def convert_hybrid_property_return_type_inner_list(arg):
312313
# type is either list[T] or List[T], generic argument at __args__[0]
313314
internal_type = arg.__args__[0]

0 commit comments

Comments
 (0)