Skip to content

Commit 0c84926

Browse files
committed
CLN: Make tseries/common.py flake8-able
1 parent 7a799ff commit 0c84926

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/tseries/common.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44

55
import numpy as np
66

7-
from pandas.types.common import (_NS_DTYPE, _TD_DTYPE,
8-
is_period_arraylike,
7+
from pandas.types.common import (is_period_arraylike,
98
is_datetime_arraylike, is_integer_dtype,
109
is_datetime64_dtype, is_datetime64tz_dtype,
1110
is_timedelta64_dtype, is_categorical_dtype,
1211
is_list_like)
1312

1413
from pandas.core.base import PandasDelegate, NoNewAttributesMixin
1514
from pandas.tseries.index import DatetimeIndex
16-
from pandas._libs.period import IncompatibleFrequency # flake8: noqa
15+
from pandas._libs.period import IncompatibleFrequency # noqa
1716
from pandas.tseries.period import PeriodIndex
1817
from pandas.tseries.tdi import TimedeltaIndex
1918
from pandas.core.algorithms import take_1d
@@ -162,6 +161,7 @@ class DatetimeProperties(Properties):
162161
def to_pydatetime(self):
163162
return self.values.to_pydatetime()
164163

164+
165165
DatetimeProperties._add_delegate_accessors(
166166
delegate=DatetimeIndex,
167167
accessors=DatetimeIndex._datetimelike_ops,
@@ -201,6 +201,7 @@ def components(self):
201201
"""
202202
return self.values.components.set_index(self.index)
203203

204+
204205
TimedeltaProperties._add_delegate_accessors(
205206
delegate=TimedeltaIndex,
206207
accessors=TimedeltaIndex._datetimelike_ops,
@@ -225,6 +226,7 @@ class PeriodProperties(Properties):
225226
Raises TypeError if the Series does not contain datetimelike values.
226227
"""
227228

229+
228230
PeriodProperties._add_delegate_accessors(
229231
delegate=PeriodIndex,
230232
accessors=PeriodIndex._datetimelike_ops,

0 commit comments

Comments
 (0)