@@ -126,8 +126,7 @@ def _simple_new(cls, values, freq=None, **kwargs):
126126 result ._freq = freq
127127 return result
128128
129- def __new__ (cls , values , freq = None , start = None , end = None , periods = None ,
130- closed = None ):
129+ def __new__ (cls , values , freq = None ):
131130
132131 freq , freq_infer = dtl .maybe_infer_freq (freq )
133132
@@ -140,8 +139,7 @@ def __new__(cls, values, freq=None, start=None, end=None, periods=None,
140139 return result
141140
142141 @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 ):
145143
146144 periods = dtl .validate_periods (periods )
147145 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):
167165
168166 if freq is not None :
169167 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 )
171169 else :
172170 index = np .linspace (start .value , end .value , periods ).astype ('i8' )
173- # TODO: shouldn't we pass `name` here? (via **kwargs)
174171 index = cls ._simple_new (index , freq = freq )
175172
176173 if not left_closed :
0 commit comments