Improve annotation for tabular_data parameter of tabulate.tabulate (#13178)

This commit is contained in:
Kai Brünnler
2024-12-06 11:38:32 +01:00
committed by GitHub
parent b252fbf08c
commit 98f070a8f8

View File

@@ -44,7 +44,8 @@ multiline_formats: dict[str, str]
def simple_separated_format(separator: str) -> TableFormat: ...
def tabulate(
tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
# The key is converted using str().
tabular_data: Mapping[Any, Iterable[Any]] | Iterable[Iterable[Any]],
headers: str | dict[str, str] | Sequence[str] = (),
tablefmt: str | TableFormat = "simple",
floatfmt: str | Iterable[str] = "g",