@@ -126,8 +126,7 @@ def _simple_new(cls, values, freq=None, **kwargs):
126
126
result ._freq = freq
127
127
return result
128
128
129
- def __new__ (cls , values , freq = None , start = None , end = None , periods = None ,
130
- closed = None ):
129
+ def __new__ (cls , values , freq = None ):
131
130
132
131
freq , freq_infer = dtl .maybe_infer_freq (freq )
133
132
@@ -140,8 +139,7 @@ def __new__(cls, values, freq=None, start=None, end=None, periods=None,
140
139
return result
141
140
142
141
@classmethod
143
- def _generate_range (cls , start , end , periods , freq , closed = None , ** kwargs ):
144
- # **kwargs are for compat with TimedeltaIndex, which includes `name`
142
+ def _generate_range (cls , start , end , periods , freq , closed = None ):
145
143
146
144
periods = dtl .validate_periods (periods )
147
145
if freq is None and any (x is None for x in [periods , start , end ]):
@@ -167,10 +165,9 @@ def _generate_range(cls, start, end, periods, freq, closed=None, **kwargs):
167
165
168
166
if freq is not None :
169
167
index = _generate_regular_range (start , end , periods , freq )
170
- index = cls ._simple_new (index , freq = freq , ** kwargs )
168
+ index = cls ._simple_new (index , freq = freq )
171
169
else :
172
170
index = np .linspace (start .value , end .value , periods ).astype ('i8' )
173
- # TODO: shouldn't we pass `name` here? (via **kwargs)
174
171
index = cls ._simple_new (index , freq = freq )
175
172
176
173
if not left_closed :
0 commit comments