@@ -70,8 +70,8 @@ def print_table(
7070
7171 @type title: str
7272 @param title: Title of the table
73- @type table: Mapping[ str, int | str | float]
74- @param table: Table to print
73+ @type table: Iterable[tuple[ str | int | float, ...] ]
74+ @param table: Table to print as an iterable of rows, where each row is a tuple of values.
7575 @type column_names: list[str]
7676 @param column_names: Names of the columns in the table
7777 """
@@ -181,13 +181,10 @@ def print_table(
181181
182182 @type title: str
183183 @param title: Title of the table
184- @type table: Mapping[str, int | str | float]
185- @param table: Table to print
186- @type key_name: str
187- @param key_name: Name of the key column. Defaults to C{"Name"}.
188- @type value_name: str
189- @param value_name: Name of the value column. Defaults to
190- C{"Value"}.
184+ @type table: Iterable[tuple[str | int | float, ...]]
185+ @param table: Table to print as an iterable of rows, where each row is a tuple of values.
186+ @type column_names: list[str]
187+ @param column_names: Names of the columns in the table
191188 """
192189 self ._rule (title )
193190 formatted = tabulate (
@@ -332,13 +329,10 @@ def print_table(
332329
333330 @type title: str
334331 @param title: Title of the table
335- @type table: Mapping[str, int | str | float]
336- @param table: Table to print
337- @type key_name: str
338- @param key_name: Name of the key column. Defaults to C{"Name"}.
339- @type value_name: str
340- @param value_name: Name of the value column. Defaults to
341- C{"Value"}.
332+ @type table: Iterable[tuple[str | int | float, ...]]
333+ @param table: Table to print as an iterable of rows, where each row is a tuple of values.
334+ @type column_names: list[str]
335+ @param column_names: Names of the columns in the table
342336 @param console: Console instance to use, if None use default
343337 console. Defaults to None.
344338 @type console: Console | None
0 commit comments