def from_code(cls, code: int) -> 'ColorCode':
        """ Return a ColorCode from a terminal code. """
        c = cls()
        c._init_code(code)
        return c
def from_code ( cls , code : int ) -> 'ColorCode' : c = cls ( ) c . _init_code ( code ) return c
Return a ColorCode from a terminal code.