11from collections .abc import Callable , Container , Iterable , Mapping , Sequence
22from typing import Any , NamedTuple
3- from typing_extensions import TypeAlias
3+ from typing_extensions import Final , Self , TypeAlias
44
5- __version__ : str
5+ from . version import __version__ as __version__
66
7- LATEX_ESCAPE_RULES : dict [str , str ]
8- MIN_PADDING : int
7+ __all__ = ["tabulate" , "tabulate_formats" , "simple_separated_format" ]
8+
9+ # These constants are meant to be configurable
10+ # https://github.com/astanin/python-tabulate#text-formatting
911PRESERVE_WHITESPACE : bool
12+ MIN_PADDING : int
13+ # https://github.com/astanin/python-tabulate#wide-fullwidth-cjk-symbols
1014WIDE_CHARS_MODE : bool
11- multiline_formats : dict [str , str ]
12- tabulate_formats : list [str ]
15+ SEPARATING_LINE : str
1316
1417class Line (NamedTuple ):
1518 begin : str
@@ -35,6 +38,10 @@ class TableFormat(NamedTuple):
3538 padding : int
3639 with_header_hide : Container [str ] | None
3740
41+ LATEX_ESCAPE_RULES : Final [dict [str , str ]]
42+ tabulate_formats : list [str ]
43+ multiline_formats : dict [str , str ]
44+
3845def simple_separated_format (separator : str ) -> TableFormat : ...
3946def tabulate (
4047 tabular_data : Mapping [str , Iterable [Any ]] | Iterable [Iterable [Any ]],
@@ -52,3 +59,7 @@ def tabulate(
5259 rowalign : str | Iterable [str ] | None = ...,
5360 maxheadercolwidths : int | Iterable [int ] | None = ...,
5461) -> str : ...
62+
63+ class JupyterHTMLStr (str ):
64+ @property
65+ def str (self ) -> Self : ...
0 commit comments