|
1 | 1 | from collections.abc import Callable, Container, Iterable, Mapping, Sequence |
2 | | -from typing import Any, Final, NamedTuple |
| 2 | +from typing import Any, Final, Literal, NamedTuple |
3 | 3 | from typing_extensions import Self, TypeAlias |
4 | 4 |
|
5 | | -from .version import __version__ as __version__ |
6 | | - |
7 | 5 | __all__ = ["tabulate", "tabulate_formats", "simple_separated_format"] |
8 | 6 |
|
| 7 | +__version__: Final[str] |
9 | 8 | # These constants are meant to be configurable |
10 | 9 | # https://github.com/astanin/python-tabulate#text-formatting |
11 | 10 | PRESERVE_WHITESPACE: bool |
@@ -55,10 +54,16 @@ def tabulate( |
55 | 54 | missingval: str | Iterable[str] = "", |
56 | 55 | showindex: str | bool | Iterable[Any] = "default", |
57 | 56 | disable_numparse: bool | Iterable[int] = False, |
| 57 | + colglobalalign: Literal["right", "center", "decimal", "left"] | None = None, |
58 | 58 | colalign: Iterable[str | None] | None = None, |
| 59 | + preserve_whitespace: bool = False, |
59 | 60 | maxcolwidths: int | Iterable[int | None] | None = None, |
| 61 | + headersglobalalign: Literal["right", "center", "left"] | None = None, |
| 62 | + headersalign: Iterable[str | None] | None = None, |
60 | 63 | rowalign: str | Iterable[str] | None = None, |
61 | 64 | maxheadercolwidths: int | Iterable[int] | None = None, |
| 65 | + break_long_words: bool = True, |
| 66 | + break_on_hyphens: bool = True, |
62 | 67 | ) -> str: ... |
63 | 68 |
|
64 | 69 | class JupyterHTMLStr(str): |
|
0 commit comments