Skip to content

Commit 4494d3f

Browse files
committed
refactor(test, test_oids): type checking for py36
1 parent 98198e9 commit 4494d3f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/datatype/test_oids.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import typing
2+
13
import pytest
24

35
from redshift_connector.utils.oids import RedshiftOID, get_datatype_name
46

5-
all_oids: list[int] = [d for d in RedshiftOID]
6-
all_datatypes: list[tuple[int, str]] = [(d, d.name) for d in RedshiftOID]
7+
all_oids: typing.List[int] = [d for d in RedshiftOID]
8+
all_datatypes: typing.List[typing.Tuple[int, str]] = [(d, d.name) for d in RedshiftOID]
79

810

911
@pytest.mark.parametrize("oid", all_oids)

0 commit comments

Comments
 (0)