def print(self, indent=0):
        """Print self with optional indent."""
        text = (
            '{indent}{magenta}{name}{none} ({dim}{cls}{none}, '
            'default {dim}{default}{none})'
        ).format(
            indent=' ' * indent,
            dim=Style.DIM,
            magenta=Fore.MAGENTA,
            none=Style.RESET_ALL,
            name=self.name,
            cls=self.cls,
            default=self.default
        )

        if self.description:
            text += ':\n' + pretty_description(self.description,
                                               indent=indent + 2)

        print(text)
def print ( self , indent = 0 ) : text = ( '{indent}{magenta}{name}{none} ({dim}{cls}{none}, ' 'default {dim}{default}{none})' ) . format ( indent = ' ' * indent , dim = Style . DIM , magenta = Fore . MAGENTA , none = Style . RESET_ALL , name = self . name , cls = self . cls , default = self . default ) if self . description : text += ':\n' + pretty_description ( self . description , indent = indent + 2 ) print ( text )
Print self with optional indent.