@@ -1186,24 +1186,24 @@ def test_map_from_arrays():
11861186 keys = pa .array (pykeys , type = 'binary' )
11871187 items = pa .array (pyitems , type = 'i4' )
11881188
1189- result = pa .MapArray .from_arrays (offsets , keys , items )
1189+ result = pa .MapArray .from_arrays (offsets , keys , items ) # type: ignore[arg-type]
11901190 expected = pa .array (pyentries , type = pa .map_ (pa .binary (), pa .int32 ()))
11911191
11921192 assert result .equals (expected )
11931193
11941194 # pass in the type explicitly
1195- result = pa .MapArray .from_arrays (offsets , keys , items , pa .map_ (
1195+ result = pa .MapArray .from_arrays (offsets , keys , items , pa .map_ ( # type: ignore[arg-type]
11961196 keys .type ,
11971197 items .type
11981198 ))
11991199 assert result .equals (expected )
12001200
12011201 # pass in invalid types
12021202 with pytest .raises (pa .ArrowTypeError , match = 'Expected map type, got string' ):
1203- pa .MapArray .from_arrays (offsets , keys , items , pa .string ())
1203+ pa .MapArray .from_arrays (offsets , keys , items , pa .string ()) # type: ignore[arg-type]
12041204
12051205 with pytest .raises (pa .ArrowTypeError , match = 'Mismatching map items type' ):
1206- pa .MapArray .from_arrays (offsets , keys , items , pa .map_ (
1206+ pa .MapArray .from_arrays (offsets , keys , items , pa .map_ ( # type: ignore[arg-type]
12071207 keys .type ,
12081208 # Larger than the original i4
12091209 pa .int64 ()
@@ -1241,7 +1241,7 @@ def test_map_from_arrays():
12411241 # error if null bitmap and offsets with nulls passed
12421242 msg1 = 'Ambiguous to specify both validity map and offsets with nulls'
12431243 with pytest .raises (pa .ArrowInvalid , match = msg1 ):
1244- pa .MapArray .from_arrays (offsets , keys , items , pa .map_ (
1244+ pa .MapArray .from_arrays (offsets , keys , items , pa .map_ ( # type: ignore[arg-type]
12451245 keys .type ,
12461246 items .type ),
12471247 mask = pa .array ([False , True , False ], type = pa .bool_ ())
@@ -2649,7 +2649,7 @@ def test_interval_array_from_relativedelta():
26492649 assert arr .type == pa .month_day_nano_interval ()
26502650 expected_list = [
26512651 None ,
2652- pa .MonthDayNano ([13 , 8 ,
2652+ pa .MonthDayNano ([13 , 8 , # type: ignore[arg-type]
26532653 (datetime .timedelta (seconds = 1 , microseconds = 1 ,
26542654 minutes = 1 , hours = 1 ) //
26552655 datetime .timedelta (microseconds = 1 )) * 1000 ])]
@@ -2682,7 +2682,7 @@ def test_interval_array_from_tuple():
26822682 assert arr .type == pa .month_day_nano_interval ()
26832683 expected_list = [
26842684 None ,
2685- pa .MonthDayNano ([1 , 2 , - 3 ])]
2685+ pa .MonthDayNano ([1 , 2 , - 3 ])] # type: ignore[arg-type]
26862686 expected = pa .array (expected_list )
26872687 assert arr .equals (expected )
26882688 assert arr .to_pylist () == expected_list
@@ -2703,8 +2703,8 @@ def test_interval_array_from_dateoffset():
27032703 assert arr .type == pa .month_day_nano_interval ()
27042704 expected_list = [
27052705 None ,
2706- pa .MonthDayNano ([13 , 8 , 3661000001001 ]),
2707- pa .MonthDayNano ([0 , 0 , 0 ])]
2706+ pa .MonthDayNano ([13 , 8 , 3661000001001 ]), # type: ignore[arg-type]
2707+ pa .MonthDayNano ([0 , 0 , 0 ])] # type: ignore[arg-type]
27082708 expected = pa .array (expected_list )
27092709 assert arr .equals (expected )
27102710 expected_from_pandas = [
0 commit comments