def __init__(self, labels: IndexInitializer, *, name: tp.Optional[tp.Hashable] = None ): # reduce to arguments relevant for these derived classes Index.__init__(self, labels=labels, name=name)
def __init__(self, labels: IndexInitializer, *, name: tp.Optional[tp.Hashable] = None): '''Initializer. {args} ''' # __init__ here leaves out the dtype argument, reducing the signature to arguments relevant for these derived classes Index.__init__(self, labels=labels, name=name)
def __init__(self, labels: IndexInitializer, *, name: NameType = NAME_DEFAULT, loc_is_iloc: bool = False, ): '''Initializer. {args} ''' assert not loc_is_iloc # __init__ here leaves out the dtype argument, reducing the signature to arguments relevant for these derived classes Index.__init__(self, labels=labels, name=name, loc_is_iloc=loc_is_iloc, )