@@ -173,10 +173,10 @@ def test_cursor_use_role(self, mock_connection: turu.snowflake.MockConnection):
173173 def test_fetch_arrow_all (self , mock_connection : turu .snowflake .MockConnection ):
174174 import pyarrow as pa
175175
176- expected = pa .table (
176+ expected : pa . Table = pa .table (
177177 data = [pa .array ([1 , 2 ], type = pa .int8 ())],
178178 schema = pa .schema ([pa .field ("ID" , pa .int8 (), False )]),
179- )
179+ ) # type: ignore
180180
181181 mock_connection .inject_response (PyArrowTable , expected )
182182
@@ -192,10 +192,10 @@ def test_fetch_arrow_all(self, mock_connection: turu.snowflake.MockConnection):
192192 def test_fetch_arrow_batches (self , mock_connection : turu .snowflake .MockConnection ):
193193 import pyarrow as pa
194194
195- expected = pa .table (
195+ expected : pa . Table = pa .table (
196196 data = [pa .array ([1 , 2 ], type = pa .int8 ())],
197197 schema = pa .schema ([pa .field ("ID" , pa .int8 (), False )]),
198- )
198+ ) # type: ignore
199199
200200 with mock_connection .inject_response (PyArrowTable , expected ).execute_map (
201201 PyArrowTable , "select 1 as ID union all select 2 as ID"
@@ -232,10 +232,10 @@ def test_inject_pyarrow_response_from_csv(
232232 ):
233233 import pyarrow as pa
234234
235- expected = pa .table (
235+ expected : pa . Table = pa .table (
236236 data = [pa .array ([1 , 2 ], type = pa .int64 ())],
237237 schema = pa .schema ([pa .field ("ID" , pa .int64 ())]),
238- )
238+ ) # type: ignore
239239
240240 with tempfile .NamedTemporaryFile () as file :
241241 Path (file .name ).write_text (
0 commit comments