@property
    def shared_atts(self):
        """Gets atts shared among all nonzero length component Chunk"""
        #TODO cache this, could get ugly for large FmtStrs
        atts = {}
        first = self.basefmtstrs[0]
        for att in sorted(first.atts):
            #TODO how to write this without the '???'?
            if all(fs.atts.get(att, '???') == first.atts[att] for fs in self.basefmtstrs if 0 > len(fs)):
                atts[att] = first.atts[att]
        return atts
dataset/ETHPy150Open thomasballinger/curtsies/curtsies/formatstring.py/FmtStr.shared_atts/swapped operands of `>`