From 3e9ca33422712b471f885a2b7dba08c023e6998e Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Sat, 7 Mar 2026 11:17:12 +0000 Subject: [PATCH] [tabulate] Update to 0.10.* (#15491) --- stubs/tabulate/METADATA.toml | 2 +- stubs/tabulate/tabulate/__init__.pyi | 11 ++++++++--- stubs/tabulate/tabulate/version.pyi | 6 ------ 3 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 stubs/tabulate/tabulate/version.pyi diff --git a/stubs/tabulate/METADATA.toml b/stubs/tabulate/METADATA.toml index c90013533..44b5c0195 100644 --- a/stubs/tabulate/METADATA.toml +++ b/stubs/tabulate/METADATA.toml @@ -1,2 +1,2 @@ -version = "0.9.*" +version = "0.10.*" upstream_repository = "https://github.com/astanin/python-tabulate" diff --git a/stubs/tabulate/tabulate/__init__.pyi b/stubs/tabulate/tabulate/__init__.pyi index f258717ad..3c4aae67c 100644 --- a/stubs/tabulate/tabulate/__init__.pyi +++ b/stubs/tabulate/tabulate/__init__.pyi @@ -1,11 +1,10 @@ from collections.abc import Callable, Container, Iterable, Mapping, Sequence -from typing import Any, Final, NamedTuple +from typing import Any, Final, Literal, NamedTuple from typing_extensions import Self, TypeAlias -from .version import __version__ as __version__ - __all__ = ["tabulate", "tabulate_formats", "simple_separated_format"] +__version__: Final[str] # These constants are meant to be configurable # https://github.com/astanin/python-tabulate#text-formatting PRESERVE_WHITESPACE: bool @@ -55,10 +54,16 @@ def tabulate( missingval: str | Iterable[str] = "", showindex: str | bool | Iterable[Any] = "default", disable_numparse: bool | Iterable[int] = False, + colglobalalign: Literal["right", "center", "decimal", "left"] | None = None, colalign: Iterable[str | None] | None = None, + preserve_whitespace: bool = False, maxcolwidths: int | Iterable[int | None] | None = None, + headersglobalalign: Literal["right", "center", "left"] | None = None, + headersalign: Iterable[str | None] | None = None, rowalign: str | Iterable[str] | None = None, maxheadercolwidths: int | Iterable[int] | None = None, + break_long_words: bool = True, + break_on_hyphens: bool = True, ) -> str: ... class JupyterHTMLStr(str): diff --git a/stubs/tabulate/tabulate/version.pyi b/stubs/tabulate/tabulate/version.pyi deleted file mode 100644 index 08615ffb7..000000000 --- a/stubs/tabulate/tabulate/version.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from typing import Final - -version: Final[str] -__version__: Final[str] -version_tuple: Final[tuple[int, int, int]] -__version_tuple__: Final[tuple[int, int, int]]