示例#1
0
 def as_ansitable(self, title: str = '{table.name}',
                  **kwargs: Any) -> str:
     """Draw table as a terminal ANSI table."""
     return dict_as_ansitable(
         self,
         title=title.format(table=self.table),
         **kwargs)
示例#2
0
 def as_ansitable(self, title: str = '{table.name}', **kwargs: Any) -> str:
     return dict_as_ansitable(self,
                              title=title.format(table=self.table),
                              **kwargs)