@@ -2297,7 +2297,7 @@ def test_strptime():
22972297@pytest .mark .pandas
22982298@pytest .mark .timezone_data
22992299def test_strftime ():
2300- times = ["2018-03-10 09:00" , "2038-01-31 12:23" , None ]
2300+ times : list [ str | None ] = ["2018-03-10 09:00" , "2038-01-31 12:23" , None ]
23012301 timezones = ["CET" , "UTC" , "Europe/Ljubljana" ]
23022302
23032303 formats = ["%a" , "%A" , "%w" , "%d" , "%b" , "%B" , "%m" , "%y" , "%Y" , "%H" , "%I" ,
@@ -2307,7 +2307,7 @@ def test_strftime():
23072307 formats .extend (["%c" , "%x" , "%X" ])
23082308
23092309 for timezone in timezones :
2310- ts = pd .to_datetime (times ).tz_localize (timezone )
2310+ ts = pd .to_datetime (times ).tz_localize (timezone ) # type: ignore[no-matching-overload]
23112311 for unit in ["s" , "ms" , "us" , "ns" ]:
23122312 tsa = pa .array (ts , type = pa .timestamp (unit , timezone ))
23132313 for fmt in formats :
@@ -2360,7 +2360,7 @@ def test_strftime():
23602360
23612361 # Test timestamps without timezone
23622362 fmt = "%Y-%m-%dT%H:%M:%S"
2363- ts = pd .to_datetime (times )
2363+ ts = pd .to_datetime (times ) # type: ignore[no-matching-overload]
23642364 tsa = pa .array (ts , type = pa .timestamp ("s" ))
23652365 result = pc .strftime (tsa , options = pc .StrftimeOptions (fmt ))
23662366 st = ts .strftime (fmt ) # type: ignore[call-non-callable]
@@ -3440,7 +3440,7 @@ def test_struct_fields_options():
34403440 pc .struct_field (arr , '.a.foo' )
34413441
34423442 with pytest .raises (pa .ArrowInvalid , match = "cannot be called without options" ):
3443- pc .struct_field (arr )
3443+ pc .struct_field (arr ) # type: ignore[call-arg]
34443444
34453445
34463446def test_case_when ():
0 commit comments