Skip to content

Commit efa1c2c

Browse files
committed
remove unnecessary condition
1 parent 01f185b commit efa1c2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/core/arrays/datetimelike.py

-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
is_list_like, is_object_dtype, is_offsetlike, is_period_dtype,
2626
is_string_dtype, is_timedelta64_dtype, is_unsigned_integer_dtype,
2727
needs_i8_conversion, pandas_dtype)
28-
from pandas.core.dtypes.dtypes import DatetimeTZDtype
2928
from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
3029
from pandas.core.dtypes.inference import is_array_like
3130
from pandas.core.dtypes.missing import isna
@@ -1177,8 +1176,6 @@ def _time_shift(self, periods, freq=None):
11771176
freq = frequencies.to_offset(freq)
11781177
offset = periods * freq
11791178
result = self + offset
1180-
if getattr(self, 'tz', None):
1181-
result._dtype = DatetimeTZDtype(tz=self.tz)
11821179
return result
11831180

11841181
if periods == 0:

0 commit comments

Comments
 (0)