def _format_attrs(self):
        attrs = []
        attrs.append(('dtype', "'%s'" % self.dtype))
        if self.name is not None:
            attrs.append(('name', default_pprint(self.name)))
        max_seq_items = get_option('display.max_seq_items') or len(self)
        if len(self) > max_seq_items:
            attrs.append(('length', len(self)))
        return attrs
Get level of indent based on list level.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._format_attrs--crossover with--dataset/ETHPy150Open darcyliu/storyboard/markdown/blockprocessors.py/ListIndentProcessor.get_level