def __repr__(self):
        args = "%r, %r" % (self.foreground, self.background)
        if self.colors == 88:
            # 88-color mode is the only one that is handled differently
            args = args + ", colors=88"
        return "%s(%s)" % (self.__class__.__name__, args)
Return an executable python representation of the AttrSpec
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/display_common.py/AttrSpec.__repr__