Skip to content

Commit 5dcb521

Browse files
committed
Construct the union in stages for Python 3.10
1 parent b9c8277 commit 5dcb521

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_sql_classes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@
4444

4545
def test_type_map():
4646
# Check that the MAPPED_TYPES matches the union of types in TYPE_MAP
47-
mapped_type_construct = typing.Union[*TYPE_MAP.keys()]
48-
assert MAPPED_TYPES == mapped_type_construct
47+
union = None
48+
for t in TYPE_MAP.keys():
49+
union = typing.Union[union, t]
50+
51+
assert MAPPED_TYPES == union
4952

5053

5154
class TestListFlattenSeparate:

0 commit comments

Comments
 (0)