Source code for pyexlatex.table.models.labels.row
from typing import Union
from pyexlatex.table.models.table.row import Row
from pyexlatex.table.models.labels.collection import LabelCollection, Label
[docs]class LabelRow(Row):
repr_cols = ['values', 'length']
@property
def length(self):
return len(self)
def _add_class(self, other):
if isinstance(other, (LabelCollection, Label)):
return LabelRow
else:
return super()._add_class(other)