Skip to content

Commit

Permalink
Improve annotation for tabular_data parameter of tabulate.tabulate (
Browse files Browse the repository at this point in the history
  • Loading branch information
kaibr authored Dec 6, 2024
1 parent b252fbf commit 98f070a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/tabulate/tabulate/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 98f070a

Please sign in to comment.