(self, preport=None)
| 102 | return d |
| 103 | |
| 104 | def pprint(self, preport=None): |
| 105 | from .text import PrettyReport |
| 106 | |
| 107 | if preport is None: |
| 108 | preport = PrettyReport() |
| 109 | |
| 110 | preport.print_tables(self, self) |
| 111 | |
| 112 | preport.print_top_separator() |
| 113 | |
| 114 | if self.metadata.get("title"): |
| 115 | preport.print_heading(self.metadata["title"]) |
| 116 | |
| 117 | for row in self: |
| 118 | cols = [] |
| 119 | for idx, col in enumerate(row): |
| 120 | text = preport._align_text(style(str(col), **col.style), width=self.col_len[idx]) |
| 121 | cols.append(text) |
| 122 | |
| 123 | preport.align(" \u2502 ".join(cols)) |
| 124 | |
| 125 | preport.print_bottom_separator() |
| 126 |
nothing calls this directly
no test coverage detected