massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / tabulate / tabulate.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/tabulate/tabulate.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/tabulate/tabulate.pyi
new file mode 100644 (file)
index 0000000..8b5efde
--- /dev/null
@@ -0,0 +1,46 @@
+from typing import Any, Callable, Container, Iterable, List, Mapping, NamedTuple, Sequence, Union
+
+LATEX_ESCAPE_RULES: dict[str, str]
+MIN_PADDING: int
+PRESERVE_WHITESPACE: bool
+WIDE_CHARS_MODE: bool
+multiline_formats: dict[str, str]
+tabulate_formats: list[str]
+
+class Line(NamedTuple):
+    begin: str
+    hline: str
+    sep: str
+    end: str
+
+class DataRow(NamedTuple):
+    begin: str
+    sep: str
+    end: str
+
+_TableFormatLine = Union[None, Line, Callable[[List[int], List[str]], str]]
+_TableFormatRow = Union[None, DataRow, Callable[[List[Any], List[int], List[str]], str]]
+
+class TableFormat(NamedTuple):
+    lineabove: _TableFormatLine
+    linebelowheader: _TableFormatLine
+    linebetweenrows: _TableFormatLine
+    linebelow: _TableFormatLine
+    headerrow: _TableFormatRow
+    datarow: _TableFormatRow
+    padding: int
+    with_header_hide: Container[str] | None
+
+def simple_separated_format(separator: str) -> TableFormat: ...
+def tabulate(
+    tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
+    headers: str | dict[str, str] | Sequence[str] = ...,
+    tablefmt: str | TableFormat = ...,
+    floatfmt: str | Iterable[str] = ...,
+    numalign: str | None = ...,
+    stralign: str | None = ...,
+    missingval: str | Iterable[str] = ...,
+    showindex: str | bool | Iterable[Any] = ...,
+    disable_numparse: bool | Iterable[int] = ...,
+    colalign: Iterable[str | None] | None = ...,
+) -> str: ...