1 from typing import Any, Callable, Container, Iterable, List, Mapping, NamedTuple, Sequence, Union
3 LATEX_ESCAPE_RULES: dict[str, str]
5 PRESERVE_WHITESPACE: bool
7 multiline_formats: dict[str, str]
8 tabulate_formats: list[str]
10 class Line(NamedTuple):
16 class DataRow(NamedTuple):
21 _TableFormatLine = Union[None, Line, Callable[[List[int], List[str]], str]]
22 _TableFormatRow = Union[None, DataRow, Callable[[List[Any], List[int], List[str]], str]]
24 class TableFormat(NamedTuple):
25 lineabove: _TableFormatLine
26 linebelowheader: _TableFormatLine
27 linebetweenrows: _TableFormatLine
28 linebelow: _TableFormatLine
29 headerrow: _TableFormatRow
30 datarow: _TableFormatRow
32 with_header_hide: Container[str] | None
34 def simple_separated_format(separator: str) -> TableFormat: ...
36 tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
37 headers: str | dict[str, str] | Sequence[str] = ...,
38 tablefmt: str | TableFormat = ...,
39 floatfmt: str | Iterable[str] = ...,
40 numalign: str | None = ...,
41 stralign: str | None = ...,
42 missingval: str | Iterable[str] = ...,
43 showindex: str | bool | Iterable[Any] = ...,
44 disable_numparse: bool | Iterable[int] = ...,
45 colalign: Iterable[str | None] | None = ...,