From 98f070a8f86a5c6f4e87ae64ec5c6d377662d0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Br=C3=BCnnler?= Date: Fri, 6 Dec 2024 11:38:32 +0100 Subject: [PATCH] Improve annotation for `tabular_data` parameter of `tabulate.tabulate` (#13178) --- stubs/tabulate/tabulate/__init__.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/tabulate/tabulate/__init__.pyi b/stubs/tabulate/tabulate/__init__.pyi index 383c29242..f258717ad 100644 --- a/stubs/tabulate/tabulate/__init__.pyi +++ b/stubs/tabulate/tabulate/__init__.pyi @@ -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",