@@ -76,7 +76,7 @@ class TestListCatalog:
7676 test_cross_db_schema_pattern : str = "p%"
7777 test_cross_db_table_pattern : str = "a%"
7878 test_cross_db_column_pattern : str = "c%"
79- test_table_types : typing .Tuple [str ] = ("TABLE" , "SHARED TABLE" , "VIEW" , "EXTERNAL TABLE" )
79+ test_table_types : typing .Tuple [str , ... ] = ("TABLE" , "SHARED TABLE" , "VIEW" , "EXTERNAL TABLE" )
8080
8181 test_ext_schema : str = "ext_sales"
8282 test_ext_schema_table : str = "test"
@@ -163,12 +163,12 @@ def test_get_schemas(mocker, _input, db_kwargs):
163163 assert len (result [0 ]) == 2
164164
165165
166- def get_tables_test_data () -> typing .List [typing .Tuple [bool , typing .Dict [str , typing .Optional [ str ]]]]:
167- result : typing .List [typing .Tuple [bool , typing .Dict [str , typing .Optional [ str ]]]] = []
166+ def get_tables_test_data () -> typing .List [typing .Optional [ typing . Tuple [bool , typing .Dict [str , typing .Any ]]]]:
167+ result : typing .List [typing .Optional [ typing . Tuple [bool , typing .Dict [str , typing .Any ]]]] = []
168168 for flip in (True , False ):
169169 TestListCatalog .config_class_consts (flip )
170- arg_data : typing .List [typing .Dict [str , typing .Optional [ str ] ]] = [
171- {"catalog" : None , "schema_pattern" : None , "table_name_pattern" : None , "types" : [] },
170+ arg_data : typing .List [typing .Dict [str , typing .Any ]] = [
171+ {"catalog" : None , "schema_pattern" : None , "table_name_pattern" : None , "types" : tuple () },
172172 {
173173 "catalog" : TestListCatalog .test_db ,
174174 "schema_pattern" : TestListCatalog .test_schema ,
@@ -197,7 +197,7 @@ def get_tables_test_data() -> typing.List[typing.Tuple[bool, typing.Dict[str, ty
197197 "catalog" : TestListCatalog .test_db ,
198198 "schema_pattern" : TestListCatalog .test_schema ,
199199 "table_name_pattern" : TestListCatalog .test_table ,
200- "types" : [] ,
200+ "types" : tuple () ,
201201 },
202202 {
203203 "catalog" : None ,
@@ -215,15 +215,20 @@ def get_tables_test_data() -> typing.List[typing.Tuple[bool, typing.Dict[str, ty
215215 "catalog" : TestListCatalog .test_db ,
216216 "schema_pattern" : TestListCatalog .test_schema ,
217217 "table_name_pattern" : None ,
218- "types" : [] ,
218+ "types" : tuple () ,
219219 },
220220 {
221221 "catalog" : None ,
222222 "schema_pattern" : TestListCatalog .test_schema ,
223223 "table_name_pattern" : TestListCatalog .test_table ,
224- "types" : [],
224+ "types" : tuple (),
225+ },
226+ {
227+ "catalog" : None ,
228+ "schema_pattern" : None ,
229+ "table_name_pattern" : TestListCatalog .test_table ,
230+ "types" : tuple (),
225231 },
226- {"catalog" : None , "schema_pattern" : None , "table_name_pattern" : TestListCatalog .test_table , "types" : []},
227232 {
228233 "catalog" : None ,
229234 "schema_pattern" : None ,
@@ -252,7 +257,7 @@ def get_tables_test_data() -> typing.List[typing.Tuple[bool, typing.Dict[str, ty
252257 "catalog" : None ,
253258 "schema_pattern" : TestListCatalog .test_schema_pattern ,
254259 "table_name_pattern" : TestListCatalog .test_table_pattern ,
255- "types" : [] ,
260+ "types" : tuple () ,
256261 },
257262 ]
258263 for test_case in arg_data :
0 commit comments