@@ -266,29 +266,63 @@ def test_to_datetime_format_weeks(self, cache):
266266 [
267267 "%Y-%m-%d %H:%M:%S%z" ,
268268 ["2010-01-01 12:00:00+0100" ] * 2 ,
269- [pd .Timestamp ("2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (60 ))] * 2 ,
269+ [
270+ pd .Timestamp (
271+ "2010-01-01 12:00:00" ,
272+ # https://github.com/python/typeshed/pull/3393
273+ # error: Module has no attribute "FixedOffset"
274+ tzinfo = pytz .FixedOffset (60 ), # type:ignore
275+ )
276+ ]
277+ * 2 ,
270278 ],
271279 [
272280 "%Y-%m-%d %H:%M:%S %z" ,
273281 ["2010-01-01 12:00:00 +0100" ] * 2 ,
274- [pd .Timestamp ("2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (60 ))] * 2 ,
282+ [
283+ pd .Timestamp (
284+ "2010-01-01 12:00:00" ,
285+ # https://github.com/python/typeshed/pull/3393
286+ # error: Module has no attribute "FixedOffset"
287+ tzinfo = pytz .FixedOffset (60 ), # type:ignore
288+ )
289+ ]
290+ * 2 ,
275291 ],
276292 [
277293 "%Y-%m-%d %H:%M:%S %z" ,
278294 ["2010-01-01 12:00:00 +0100" , "2010-01-01 12:00:00 -0100" ],
279295 [
280- pd .Timestamp ("2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (60 )),
281- pd .Timestamp ("2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (- 60 )),
296+ pd .Timestamp (
297+ "2010-01-01 12:00:00" ,
298+ # https://github.com/python/typeshed/pull/3393
299+ # error: Module has no attribute "FixedOffset"
300+ tzinfo = pytz .FixedOffset (60 ), # type:ignore
301+ ),
302+ pd .Timestamp (
303+ "2010-01-01 12:00:00" ,
304+ # https://github.com/python/typeshed/pull/3393
305+ # error: Module has no attribute "FixedOffset"
306+ tzinfo = pytz .FixedOffset (- 60 ), # type:ignore
307+ ),
282308 ],
283309 ],
284310 [
285311 "%Y-%m-%d %H:%M:%S %z" ,
286312 ["2010-01-01 12:00:00 Z" , "2010-01-01 12:00:00 Z" ],
287313 [
288314 pd .Timestamp (
289- "2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (0 )
315+ "2010-01-01 12:00:00" ,
316+ # https://github.com/python/typeshed/pull/3393
317+ # error: Module has no attribute "FixedOffset"
318+ tzinfo = pytz .FixedOffset (0 ), # type:ignore
290319 ), # pytz coerces to UTC
291- pd .Timestamp ("2010-01-01 12:00:00" , tzinfo = pytz .FixedOffset (0 )),
320+ pd .Timestamp (
321+ "2010-01-01 12:00:00" ,
322+ # https://github.com/python/typeshed/pull/3393
323+ # error: Module has no attribute "FixedOffset"
324+ tzinfo = pytz .FixedOffset (0 ), # type:ignore
325+ ),
292326 ],
293327 ],
294328 ],
@@ -2078,12 +2112,16 @@ def test_parsers_time(self):
20782112 [
20792113 (
20802114 "2013-01-01 05:45+0545" ,
2081- pytz .FixedOffset (345 ),
2115+ # https://github.com/python/typeshed/pull/3393
2116+ # error: Module has no attribute "FixedOffset"
2117+ pytz .FixedOffset (345 ), # type:ignore
20822118 "Timestamp('2013-01-01 05:45:00+0545', tz='pytz.FixedOffset(345)')" ,
20832119 ),
20842120 (
20852121 "2013-01-01 05:30+0530" ,
2086- pytz .FixedOffset (330 ),
2122+ # https://github.com/python/typeshed/pull/3393
2123+ # error: Module has no attribute "FixedOffset"
2124+ pytz .FixedOffset (330 ), # type:ignore
20872125 "Timestamp('2013-01-01 05:30:00+0530', tz='pytz.FixedOffset(330)')" ,
20882126 ),
20892127 ],
0 commit comments