@@ -266,29 +266,63 @@ def test_to_datetime_format_weeks(self, cache):
266
266
[
267
267
"%Y-%m-%d %H:%M:%S%z" ,
268
268
["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 ,
270
278
],
271
279
[
272
280
"%Y-%m-%d %H:%M:%S %z" ,
273
281
["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 ,
275
291
],
276
292
[
277
293
"%Y-%m-%d %H:%M:%S %z" ,
278
294
["2010-01-01 12:00:00 +0100" , "2010-01-01 12:00:00 -0100" ],
279
295
[
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
+ ),
282
308
],
283
309
],
284
310
[
285
311
"%Y-%m-%d %H:%M:%S %z" ,
286
312
["2010-01-01 12:00:00 Z" , "2010-01-01 12:00:00 Z" ],
287
313
[
288
314
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
290
319
), # 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
+ ),
292
326
],
293
327
],
294
328
],
@@ -2078,12 +2112,16 @@ def test_parsers_time(self):
2078
2112
[
2079
2113
(
2080
2114
"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
2082
2118
"Timestamp('2013-01-01 05:45:00+0545', tz='pytz.FixedOffset(345)')" ,
2083
2119
),
2084
2120
(
2085
2121
"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
2087
2125
"Timestamp('2013-01-01 05:30:00+0530', tz='pytz.FixedOffset(330)')" ,
2088
2126
),
2089
2127
],
0 commit comments