Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98f070a

Browse files
authored
Improve annotation for tabular_data parameter of tabulate.tabulate (#13178)
1 parent b252fbf commit 98f070a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/tabulate/tabulate/__init__.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ multiline_formats: dict[str, str]
4444

4545
def simple_separated_format(separator: str) -> TableFormat: ...
4646
def tabulate(
47-
tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
47+
# The key is converted using str().
48+
tabular_data: Mapping[Any, Iterable[Any]] | Iterable[Iterable[Any]],
4849
headers: str | dict[str, str] | Sequence[str] = (),
4950
tablefmt: str | TableFormat = "simple",
5051
floatfmt: str | Iterable[str] = "g",

0 commit comments

Comments
 (0)